From: Randy Dunlap Date: Sat, 9 Dec 2006 20:33:36 +0000 (+0100) Subject: [PATCH] i386: export smp_num_siblings for oprofile X-Git-Tag: v2.6.20-rc1~34^2~19^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7e74437cf60cc84a655e301f1ee48027b3bcf96e;p=linux-2.6-omap-h63xx.git [PATCH] i386: export smp_num_siblings for oprofile oprofile uses smp_num_siblings without testing for CONFIG_X86_HT. I looked at modifying oprofile, but this way is cleaner & simpler and I didn't see a good reason not to just export it when CONFIG_SMP. WARNING: "smp_num_siblings" [arch/i386/oprofile/oprofile.ko] undefined! Signed-off-by: Randy Dunlap Signed-off-by: Andi Kleen --- diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c index 1e00b03163b..b0f84e5778a 100644 --- a/arch/i386/kernel/smpboot.c +++ b/arch/i386/kernel/smpboot.c @@ -69,7 +69,7 @@ static int __devinitdata smp_b_stepping; /* Number of siblings per CPU package */ int smp_num_siblings = 1; -#ifdef CONFIG_X86_HT +#ifdef CONFIG_SMP EXPORT_SYMBOL(smp_num_siblings); #endif