Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
V1->V2:
- Removed extraneous casts
- Fix !NUMA builds with '#ifdef
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis [EMAIL PROTECTED]
Reviewed-by: Christoph Lameter [EMAIL PROTECTED]
---
V1-V2:
- Removed extraneous casts
- Fix !NUMA builds with '#ifdef
Andi Kleen wrote:
> [EMAIL PROTECTED] writes:
>> +
>> /* Returns the number of the node containing CPU 'cpu' */
>> static inline int cpu_to_node(int cpu)
>> {
>> -return cpu_to_node_map[cpu];
>> +u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr;
>> +
>> +if (cpu_to_node_map)
>>
[EMAIL PROTECTED] writes:
> +
> /* Returns the number of the node containing CPU 'cpu' */
> static inline int cpu_to_node(int cpu)
> {
> - return cpu_to_node_map[cpu];
> + u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr;
> +
> + if (cpu_to_node_map)
> + return
[EMAIL PROTECTED] writes:
+
/* Returns the number of the node containing CPU 'cpu' */
static inline int cpu_to_node(int cpu)
{
- return cpu_to_node_map[cpu];
+ u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr;
+
+ if (cpu_to_node_map)
+ return
Andi Kleen wrote:
[EMAIL PROTECTED] writes:
+
/* Returns the number of the node containing CPU 'cpu' */
static inline int cpu_to_node(int cpu)
{
-return cpu_to_node_map[cpu];
+u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr;
+
+if (cpu_to_node_map)
+return
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
V1->V2:
- Removed extraneous casts
- Fix !NUMA builds with '#ifdef
On Jan 13 2008 10:35, [EMAIL PROTECTED] wrote:
>--- a/arch/x86/kernel/setup_64.c
>+++ b/arch/x86/kernel/setup_64.c
>@@ -372,8 +373,9 @@ void __init setup_arch(char **cmdline_p)
> io_delay_init();
>
> #ifdef CONFIG_SMP
>- /* setup to use the static apicid table during kernel startup */
Ingo Molnar wrote:
> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>> Change the following static arrays sized by NR_CPUS to
>> per_cpu data variables:
>>
>> char cpu_to_node_map[NR_CPUS];
>
> x86.git randconfig testing found the !NUMA build bugs below.
>
> Ingo
Thanks! I'll add
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Change the following static arrays sized by NR_CPUS to
> per_cpu data variables:
>
> char cpu_to_node_map[NR_CPUS];
x86.git randconfig testing found the !NUMA build bugs below.
Ingo
--->
---
Ingo Molnar wrote:
* [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
x86.git randconfig testing found the !NUMA build bugs below.
Ingo
Thanks! I'll add this in.
Mike
On Jan 13 2008 10:35, [EMAIL PROTECTED] wrote:
--- a/arch/x86/kernel/setup_64.c
+++ b/arch/x86/kernel/setup_64.c
@@ -372,8 +373,9 @@ void __init setup_arch(char **cmdline_p)
io_delay_init();
#ifdef CONFIG_SMP
- /* setup to use the static apicid table during kernel startup */
+
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis [EMAIL PROTECTED]
Reviewed-by: Christoph Lameter [EMAIL PROTECTED]
---
V1-V2:
- Removed extraneous casts
- Fix !NUMA builds with '#ifdef
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis <[EMAIL PROTECTED]>
Reviewed-by: Christoph Lameter <[EMAIL PROTECTED]>
---
arch/x86/kernel/setup_64.c |4 +++-
arch/x86/kernel/smpboot_64.c |
Change the following static arrays sized by NR_CPUS to
per_cpu data variables:
char cpu_to_node_map[NR_CPUS];
Signed-off-by: Mike Travis [EMAIL PROTECTED]
Reviewed-by: Christoph Lameter [EMAIL PROTECTED]
---
arch/x86/kernel/setup_64.c |4 +++-
arch/x86/kernel/smpboot_64.c |6
15 matches
Mail list logo