]> err.no Git - linux-2.6/commitdiff
[PATCH] fix "cpu to node relationship fixup: map cpu to node"
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Wed, 27 Sep 2006 08:49:25 +0000 (01:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Sep 2006 15:26:08 +0000 (08:26 -0700)
Fix build error introduced by 3212fe1594e577463bc8601d28aa008f520c3377

Non-NUMA case should be handled.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ia64/kernel/topology.c
include/asm-ia64/numa.h

index 05bdf7affb431742a7c0f7ea8c167bea6300c530..5629b45e89c6bc50892c4a8e69b66d0f0be67d86 100644 (file)
@@ -36,9 +36,7 @@ int arch_register_cpu(int num)
         */
        if (!can_cpei_retarget() && is_cpu_cpei_target(num))
                sysfs_cpus[num].cpu.no_control = 1;
-#ifdef CONFIG_NUMA
        map_cpu_to_node(num, node_cpuid[num].nid);
-#endif
 #endif
 
        return register_cpu(&sysfs_cpus[num].cpu, num);
index e0a1d173e42df07fd74ebee65ffde116b9e76ec9..7d5e2ccc37a079fb4fe2ffbd16d69c919c6610a5 100644 (file)
@@ -69,6 +69,8 @@ extern void unmap_cpu_from_node(int cpu, int nid);
 
 
 #else /* !CONFIG_NUMA */
+#define map_cpu_to_node(cpu, nid)      do{}while(0)
+#define unmap_cpu_from_node(cpu, nid)  do{}while(0)
 
 #define paddr_to_nid(addr)     0