aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/lib/Makefile
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@openvz.org>2007-02-16 01:48:11 -0800
committerDave Jones <davej@redhat.com>2007-02-20 14:23:43 -0500
commitb077ffb3b767c3efb44d00b998385a9cb127255c (patch)
tree160369b5541142afedc20a97a9c89718550cf2a3 /arch/i386/lib/Makefile
parent[CPUFREQ] Revert default on deprecated config X86_SPEEDSTEP_CENTRINO_ACPI (diff)
downloadlinux-dev-b077ffb3b767c3efb44d00b998385a9cb127255c.tar.xz
linux-dev-b077ffb3b767c3efb44d00b998385a9cb127255c.zip
rdmsr_on_cpu, wrmsr_on_cpu
There was OpenVZ specific bug rendering some cpufreq drivers unusable on SMP. In short, when cpufreq code thinks it confined itself to needed cpu by means of set_cpus_allowed() to execute rdmsr, some "virtual cpu" feature can migrate process to anywhere. This triggers bugons and does wrong things in general. This got fixed by introducing rdmsr_on_cpu and wrmsr_on_cpu executing rdmsr and wrmsr on given physical cpu by means of smp_call_function_single(). Dave Jones mentioned cpufreq might be not only user of rdmsr_on_cpu() and wrmsr_on_cpu(), so I'm putting them into arch/{i386,x86_64}/lib/ . Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'arch/i386/lib/Makefile')
-rw-r--r--arch/i386/lib/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/lib/Makefile b/arch/i386/lib/Makefile
index d86a548b8d54..0d41223472c2 100644
--- a/arch/i386/lib/Makefile
+++ b/arch/i386/lib/Makefile
@@ -7,3 +7,5 @@ lib-y = checksum.o delay.o usercopy.o getuser.o putuser.o memcpy.o strstr.o \
bitops.o semaphore.o
lib-$(CONFIG_X86_USE_3DNOW) += mmx.o
+
+obj-y = msr-on-cpu.o