소스 검색

[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 <randy.dunlap@oracle.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Randy Dunlap 18 년 전
부모
커밋
7e74437cf6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/i386/kernel/smpboot.c

+ 1 - 1
arch/i386/kernel/smpboot.c

@@ -69,7 +69,7 @@ static int __devinitdata smp_b_stepping;
 
 
 /* Number of siblings per CPU package */
 /* Number of siblings per CPU package */
 int smp_num_siblings = 1;
 int smp_num_siblings = 1;
-#ifdef CONFIG_X86_HT
+#ifdef CONFIG_SMP
 EXPORT_SYMBOL(smp_num_siblings);
 EXPORT_SYMBOL(smp_num_siblings);
 #endif
 #endif