Skip to content

Commit

Permalink
[PATCH] i386: export smp_num_siblings for oprofile
Browse files Browse the repository at this point in the history
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 <randy.dunlap@oracle.com>
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Randy Dunlap authored and Andi Kleen committed Dec 9, 2006
1 parent 1bac3b3 commit 7e74437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7e74437

Please sign in to comment.