From: Rusty Russell Date: Fri, 12 Jun 2009 11:25:37 +0000 (+0930) Subject: [CPUFREQ] cpumask: avoid playing with cpus_allowed in powernow-k8.c X-Git-Tag: v2.6.31-rc1~284^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ff6e97f1d993dff2f9b6f4a9173687370660232;p=pandora-kernel.git [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 To: cpufreq@vger.kernel.org Acked-by: Mark Langsdorf Tested-by: Mark Langsdorf Signed-off-by: Dave Jones --- Reading git-diff-tree failed