FAILED: patch "[PATCH] tick/powerclamp: Remove tick_nohz_idle abuse" failed to apply to 3.10-stable tree
Subsystems (2)
The patch below does not apply to the 3.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
a5fd9733a30d18d7ac23f17080e7e07bb3205b69Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <[email protected]>
Date: Thu, 18 Dec 2014 11:51:01 +0100
Subject: [PATCH] tick/powerclamp: Remove tick_nohz_idle abuse
commit 4dbd27711cd9 "tick: export nohz tick idle symbols for module use" was merged via the thermal tree without an explicit ack from the relevant maintainers.
The exports are abused by the intel powerclamp driver which implements a fake idle state from a sched FIFO task. This causes all kinds of wreckage in the NOHZ core code which rightfully assumes that tick_nohz_idle_enter/exit() are only called from the idle task itself.
Recent changes in the NOHZ core lead to a failure of the powerclamp driver and now people try to hack completely broken and backwards workarounds into the NOHZ core code. This is completely unacceptable and just papers over the real problem. There are way more subtle issues lurking around the corner.
The real solution is to fix the powerclamp driver by rewriting it with a sane concept, but that's beyond the scope of this.
So the only solution for now is to remove the calls into the core NOHZ code from the powerclamp trainwreck along with the exports.
drivers/thermal/intel_powerclamp.c +0 -2
@@ -435,7 +435,6 @@ static int clamp_thread(void *arg)* allowed. thus jiffies are updated properly. */ preempt_disable (); -tick_nohz_idle_enter ();/* mwait until target jiffies is reached */ while (time_before (jiffies, target_jiffies)) {unsigned long ecx =1 ;
@@ -451,7 +450,6 @@ static int clamp_thread(void *arg)start_critical_timings ();atomic_inc (&idle_wakeup_counter); } -tick_nohz_idle_exit ();preempt_enable (); }del_timer_sync (&wakeup_timer);
kernel/time/tick-sched.c +0 -2
@@ -847,7 +847,6 @@ void tick_nohz_idle_enter(void)local_irq_enable (); } -EXPORT_SYMBOL_GPL (tick_nohz_idle_enter);/** * tick_nohz_irq_exit - update next tick event from interrupt exit
@@ -974,7 +973,6 @@ void tick_nohz_idle_exit(void)local_irq_enable (); } -EXPORT_SYMBOL_GPL (tick_nohz_idle_exit);static int tick_nohz_reprogram (struct tick_sched *ts,ktime_t now) {