]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86-64: Let oprofile reserve MSR on all CPUs
authorAndi Kleen <ak@suse.de>
Mon, 2 Apr 2007 10:14:12 +0000 (12:14 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Mon, 2 Apr 2007 10:14:12 +0000 (12:14 +0200)
commit77f61ae6910d187b3193e653cd29e8246d768637
tree93c7c3855c82e9ce47505e3d1d6a144100052748
parent667bc16b5e4cb54a7bd12ec0038a2edb5d9ba574
[PATCH] x86-64: Let oprofile reserve MSR on all CPUs

The MSR reservation is per CPU and oprofile would only allocate them
on the CPU it was initialized on. Change this to handle all CPUs.

This also fixes a warning about unprotected use of smp_processor_id()
in preemptible kernels.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/nmi.c
arch/x86_64/kernel/nmi.c