linux/arch/x86/kernel/cpu/cpufreq
Rusty Russell 1ff6e97f1d [CPUFREQ] cpumask: avoid playing with cpus_allowed in powernow-k8.c
cpumask: avoid playing with cpus_allowed in powernow-k8.c

It's generally a very bad idea to mug some process's cpumask: it could
legitimately and reasonably be changed by root, which could break us
(if done before our code) or them (if we restore the wrong value).

I did not replace powernowk8_target; it needs fixing, but it grabs a
mutex (so no smp_call_function_single here) but Mark points out it can
be called multiple times per second, so work_on_cpu is too heavy.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
To: cpufreq@vger.kernel.org
Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>
Tested-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Dave Jones <davej@redhat.com>
2009-06-15 11:49:43 -04:00
..
acpi-cpufreq.c CPUFREQ: Enable acpi-cpufreq driver for VIA/Centaur CPUs 2009-06-10 15:22:44 -07:00
cpufreq-nforce2.c [CPUFREQ] Make cpufreq-nforce2 less obnoxious 2009-02-24 22:47:32 -05:00
e_powersaver.c Merge branch 'core/percpu' into percpu-cpumask-x86-for-linus-2 2009-03-27 17:28:43 +01:00
elanfreq.c [CPUFREQ] checkpatch cleanups for elanfreq 2009-02-24 22:47:28 -05:00
gx-suspmod.c [CPUFREQ] checkpatch cleanups for gx-suspmod 2009-02-24 22:47:29 -05:00
Kconfig CPUFREQ: Mark e_powersaver driver as EXPERIMENTAL and DANGEROUS 2009-06-10 15:22:44 -07:00
longhaul.c ACPI: cpufreq: remove dupilcated #include 2009-04-07 01:39:14 -04:00
longhaul.h [CPUFREQ] checkpatch cleanups for longhaul 2009-02-24 22:47:29 -05:00
longrun.c [CPUFREQ] checkpatch cleanups for longrun 2009-02-24 22:47:29 -05:00
Makefile [CPUFREQ] Change link order of x86 cpufreq modules 2009-02-24 22:47:32 -05:00
p4-clockmod.c [CPUFREQ] add atom family to p4-clockmod 2009-05-26 12:04:50 -04:00
powernow-k6.c [CPUFREQ] checkpatch cleanups for powernow-k6 2009-02-24 22:47:29 -05:00
powernow-k7.c cpumask: alloc zeroed cpumask for static cpumask_var_ts 2009-06-09 22:30:27 +09:30
powernow-k7.h [CPUFREQ] cpufreq: remove CVS keywords 2008-05-19 18:17:49 -04:00
powernow-k8.c [CPUFREQ] cpumask: avoid playing with cpus_allowed in powernow-k8.c 2009-06-15 11:49:43 -04:00
powernow-k8.h [CPUFREQ] powernow-k8: Always compile powernow-k8 driver with ACPI support 2009-02-24 22:47:31 -05:00
sc520_freq.c [CPUFREQ] checkpatch cleanups for sc520 2009-02-24 22:47:29 -05:00
speedstep-centrino.c [CPUFREQ] cpumask: avoid cpumask games in arch/x86/kernel/cpu/cpufreq/speedstep-centrino.c 2009-06-15 11:49:43 -04:00
speedstep-ich.c [CPUFREQ] cpumask: avoid playing with cpus_allowed in speedstep-ich.c 2009-06-15 11:49:43 -04:00
speedstep-lib.c [CPUFREQ] cpumask: avoid playing with cpus_allowed in speedstep-ich.c 2009-06-15 11:49:43 -04:00
speedstep-lib.h [CPUFREQ] checkpatch cleanups for speedstep related drivers. 2009-02-24 22:47:30 -05:00
speedstep-smi.c [CPUFREQ] checkpatch cleanups for speedstep related drivers. 2009-02-24 22:47:30 -05:00