From 040624f2435756675096b12a316a7b758cfadcbc Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Mon, 3 Mar 2008 14:12:33 -0300 Subject: [PATCH] --- yaml --- r: 88701 b: refs/heads/master c: c76cb36846da6d5d6fb2951968869faa4fd1001d h: refs/heads/master i: 88699: 40cde002b2c4c7e4208a04ce22ef82d674a09720 v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/smp_64.c | 2 ++ trunk/include/asm-x86/smp.h | 3 +++ trunk/include/asm-x86/smp_32.h | 2 -- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index d7595843b8f7..574fee5faa06 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 16694024d6d6fa84dfcf5400b53afe1e75cebf0d +refs/heads/master: c76cb36846da6d5d6fb2951968869faa4fd1001d diff --git a/trunk/arch/x86/kernel/smp_64.c b/trunk/arch/x86/kernel/smp_64.c index 2fd74b06db67..80dba12b56af 100644 --- a/trunk/arch/x86/kernel/smp_64.c +++ b/trunk/arch/x86/kernel/smp_64.c @@ -528,3 +528,5 @@ asmlinkage void smp_call_function_interrupt(void) } } +struct smp_ops smp_ops; +EXPORT_SYMBOL_GPL(smp_ops); diff --git a/trunk/include/asm-x86/smp.h b/trunk/include/asm-x86/smp.h index d11b92b56353..ee98beeb7511 100644 --- a/trunk/include/asm-x86/smp.h +++ b/trunk/include/asm-x86/smp.h @@ -21,6 +21,9 @@ struct smp_ops { int wait); }; +#ifdef CONFIG_SMP +extern struct smp_ops smp_ops; +#endif #ifdef CONFIG_X86_32 # include "smp_32.h" diff --git a/trunk/include/asm-x86/smp_32.h b/trunk/include/asm-x86/smp_32.h index 72faad6509c7..74755e8ffc77 100644 --- a/trunk/include/asm-x86/smp_32.h +++ b/trunk/include/asm-x86/smp_32.h @@ -39,8 +39,6 @@ extern void remove_siblinginfo(int cpu); extern void set_cpu_sibling_map(int cpu); #ifdef CONFIG_SMP -extern struct smp_ops smp_ops; - static inline void smp_prepare_boot_cpu(void) { smp_ops.smp_prepare_boot_cpu();