aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-19 16:29:20 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-19 16:29:20 -0500
commit4bb9374e0bd40d8fe97860ea0d61a0330b7c3925 (patch)
treec0b48d4c2c7dca8eec164bea7bba09ae839dec2d /drivers/thermal
parentac88ee3b6cbac80c32556a39fe16c4bbc55fcbc5 (diff)
parenta5fd9733a30d18d7ac23f17080e7e07bb3205b69 (diff)
Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull NOHZ update from Thomas Gleixner: "Remove the call into the nohz idle code from the fake 'idle' thread in the powerclamp driver along with the export of those functions which was smuggeled in via the thermal tree. People have tried to hack around it in the nohz core code, but it just violates all rightful assumptions of that code about the only valid calling context (i.e. the proper idle task). The powerclamp trainwreck will still work, it just wont get the benefit of long idle sleeps" * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: tick/powerclamp: Remove tick_nohz_idle abuse
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/intel_powerclamp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel_powerclamp.c
index b46c706e1cac..e98b4249187c 100644
--- a/drivers/thermal/intel_powerclamp.c
+++ b/drivers/thermal/intel_powerclamp.c
@@ -435,7 +435,6 @@ static int clamp_thread(void *arg)
435 * allowed. thus jiffies are updated properly. 435 * allowed. thus jiffies are updated properly.
436 */ 436 */
437 preempt_disable(); 437 preempt_disable();
438 tick_nohz_idle_enter();
439 /* mwait until target jiffies is reached */ 438 /* mwait until target jiffies is reached */
440 while (time_before(jiffies, target_jiffies)) { 439 while (time_before(jiffies, target_jiffies)) {
441 unsigned long ecx = 1; 440 unsigned long ecx = 1;
@@ -451,7 +450,6 @@ static int clamp_thread(void *arg)
451 start_critical_timings(); 450 start_critical_timings();
452 atomic_inc(&idle_wakeup_counter); 451 atomic_inc(&idle_wakeup_counter);
453 } 452 }
454 tick_nohz_idle_exit();
455 preempt_enable(); 453 preempt_enable();
456 } 454 }
457 del_timer_sync(&wakeup_timer); 455 del_timer_sync(&wakeup_timer);