diff options
-rw-r--r-- | arch/x86/kernel/topology.c | 3 | ||||
-rw-r--r-- | include/asm-x86/cpu.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/topology.c b/arch/x86/kernel/topology.c index 78cbb655aa79..e6757aaa202b 100644 --- a/arch/x86/kernel/topology.c +++ b/arch/x86/kernel/topology.c | |||
@@ -57,11 +57,10 @@ void arch_unregister_cpu(int num) | |||
57 | } | 57 | } |
58 | EXPORT_SYMBOL(arch_unregister_cpu); | 58 | EXPORT_SYMBOL(arch_unregister_cpu); |
59 | #else | 59 | #else |
60 | int arch_register_cpu(int num) | 60 | static int __init arch_register_cpu(int num) |
61 | { | 61 | { |
62 | return register_cpu(&per_cpu(cpu_devices, num).cpu, num); | 62 | return register_cpu(&per_cpu(cpu_devices, num).cpu, num); |
63 | } | 63 | } |
64 | EXPORT_SYMBOL(arch_register_cpu); | ||
65 | #endif /*CONFIG_HOTPLUG_CPU*/ | 64 | #endif /*CONFIG_HOTPLUG_CPU*/ |
66 | 65 | ||
67 | static int __init topology_init(void) | 66 | static int __init topology_init(void) |
diff --git a/include/asm-x86/cpu.h b/include/asm-x86/cpu.h index 85ece5f10e9e..73f2ea84fd74 100644 --- a/include/asm-x86/cpu.h +++ b/include/asm-x86/cpu.h | |||
@@ -10,8 +10,9 @@ | |||
10 | struct x86_cpu { | 10 | struct x86_cpu { |
11 | struct cpu cpu; | 11 | struct cpu cpu; |
12 | }; | 12 | }; |
13 | extern int arch_register_cpu(int num); | 13 | |
14 | #ifdef CONFIG_HOTPLUG_CPU | 14 | #ifdef CONFIG_HOTPLUG_CPU |
15 | extern int arch_register_cpu(int num); | ||
15 | extern void arch_unregister_cpu(int); | 16 | extern void arch_unregister_cpu(int); |
16 | #endif | 17 | #endif |
17 | 18 | ||