linux/arch/i386/lib
Alexey Dobriyan b077ffb3b7 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>
2007-02-20 14:23:43 -05:00
..
bitops.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
checksum.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
delay.c [PATCH] Some config.h removals 2006-10-01 00:39:34 -07:00
getuser.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile rdmsr_on_cpu, wrmsr_on_cpu 2007-02-20 14:23:43 -05:00
memcpy.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mmx.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
msr-on-cpu.c rdmsr_on_cpu, wrmsr_on_cpu 2007-02-20 14:23:43 -05:00
putuser.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
semaphore.S [PATCH] i386: fix rwsem build bug on CONFIG_M386=y 2006-10-05 18:47:22 +02:00
strstr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
usercopy.c [PATCH] separate bdi congestion functions from queue congestion functions 2006-10-20 10:26:35 -07:00