diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-07-08 18:06:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-16 04:55:07 -0400 |
commit | 7c33b1e6ee26d67551109aca04d46544d0ce55b1 (patch) | |
tree | 260ccaf268a4e981d95b152857e4c25e20b03ad8 | |
parent | 360c044eb1b985a9ef29d952276a3e14973bed93 (diff) |
x86_64: unstatic get_local_pda
This allows Xen's xen_cpu_up() to allocate a pda for the new CPU.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Stephen Tweedie <sct@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/smpboot.c | 2 | ||||
-rw-r--r-- | include/asm-x86/smp.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 687376ab07e8..1deb3b624a79 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -768,7 +768,7 @@ static void __cpuinit do_fork_idle(struct work_struct *work) | |||
768 | * | 768 | * |
769 | * Must be called after the _cpu_pda pointer table is initialized. | 769 | * Must be called after the _cpu_pda pointer table is initialized. |
770 | */ | 770 | */ |
771 | static int __cpuinit get_local_pda(int cpu) | 771 | int __cpuinit get_local_pda(int cpu) |
772 | { | 772 | { |
773 | struct x8664_pda *oldpda, *newpda; | 773 | struct x8664_pda *oldpda, *newpda; |
774 | unsigned long size = sizeof(struct x8664_pda); | 774 | unsigned long size = sizeof(struct x8664_pda); |
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index c2784b3e0b77..3c877f74f279 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -25,6 +25,8 @@ extern cpumask_t cpu_callin_map; | |||
25 | extern void (*mtrr_hook)(void); | 25 | extern void (*mtrr_hook)(void); |
26 | extern void zap_low_mappings(void); | 26 | extern void zap_low_mappings(void); |
27 | 27 | ||
28 | extern int __cpuinit get_local_pda(int cpu); | ||
29 | |||
28 | extern int smp_num_siblings; | 30 | extern int smp_num_siblings; |
29 | extern unsigned int num_processors; | 31 | extern unsigned int num_processors; |
30 | extern cpumask_t cpu_initialized; | 32 | extern cpumask_t cpu_initialized; |