Commit bbf2bef9 authored by KAMEZAWA Hiroyuki's avatar KAMEZAWA Hiroyuki Committed by Linus Torvalds

[PATCH] fix "cpu to node relationship fixup: map cpu to node"

Fix build error introduced by 3212fe15

Non-NUMA case should be handled.
Signed-off-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a5b08073
...@@ -36,9 +36,7 @@ int arch_register_cpu(int num) ...@@ -36,9 +36,7 @@ int arch_register_cpu(int num)
*/ */
if (!can_cpei_retarget() && is_cpu_cpei_target(num)) if (!can_cpei_retarget() && is_cpu_cpei_target(num))
sysfs_cpus[num].cpu.no_control = 1; sysfs_cpus[num].cpu.no_control = 1;
#ifdef CONFIG_NUMA
map_cpu_to_node(num, node_cpuid[num].nid); map_cpu_to_node(num, node_cpuid[num].nid);
#endif
#endif #endif
return register_cpu(&sysfs_cpus[num].cpu, num); return register_cpu(&sysfs_cpus[num].cpu, num);
......
...@@ -69,6 +69,8 @@ extern void unmap_cpu_from_node(int cpu, int nid); ...@@ -69,6 +69,8 @@ extern void unmap_cpu_from_node(int cpu, int nid);
#else /* !CONFIG_NUMA */ #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 #define paddr_to_nid(addr) 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment