]> git.baikalelectronics.ru Git - kernel.git/commit
i386: Fix K8/core2 oprofile on multiple CPUs
authorAndi Kleen <ak@suse.de>
Mon, 21 May 2007 12:31:45 +0000 (14:31 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 21 May 2007 16:56:56 +0000 (09:56 -0700)
commitc998e876abe4720f9a758f5058c769a3cf8a50fb
tree9614d07dc9502bcbaf3090d971bd7bd320b0e8a5
parent50bf0f1396ffa873d1cfc3fe0ecb5acab1f3189a
i386: Fix K8/core2 oprofile on multiple CPUs

Only try to allocate MSRs once instead of for every CPU.

This assumes the MSRs are the same on all CPUs which is currently
true. P4-HT is a special case for different SMT threads, but the code
always saves/restores all MSRs so it works identical.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/oprofile/nmi_int.c