Commit 95456f9a authored by Dave Jones's avatar Dave Jones

[CPUFREQ] powernow-k8: preempt fix

Pavel's fix for preempt in the suspend scenario.
The driver protects itself from multiple entry already, and it does not care if
there is a long delay in the middle of a multi-step transition, so there
really is no need for it to disable preempt.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 63add93e
......@@ -869,12 +869,9 @@ static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsi
if (smp_processor_id() != pol->cpu) {
printk(KERN_ERR "limiting to cpu %u failed\n", pol->cpu);
goto sched_out;
goto err_out;
}
/* from this point, do not exit without restoring preempt and cpu */
preempt_disable();
if (pending_bit_stuck()) {
printk(KERN_ERR PFX "failing targ, change pending bit set\n");
goto err_out;
......@@ -912,8 +909,6 @@ static int powernowk8_target(struct cpufreq_policy *pol, unsigned targfreq, unsi
ret = 0;
err_out:
preempt_enable_no_resched();
sched_out:
set_cpus_allowed(current, oldmask);
schedule();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment