Message ID | CAKohpo=C8Jv-+CtmDO+QJ-_=3dNwsk6_W0gtRRHmtSQ8_LgObQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 16 December 2014 at 02:54, Pan, Jacob jun <jacob.jun.pan@intel.com> wrote: > Looks good to me. You can add my Reviewed-by to the above patch. Thanks. > I have tested this fix and confirm powerclamp is working properly now. Oh, nice. > However, we also have a planned patch for consolidated idle loop. With this patch it causes some erratic behavior in idle injection. > I can’t seem to synchronize/align idle time around jiffies with this patch + fix. > > Any suggestions welcome. > https://lkml.org/lkml/2014/6/4/56 And all works fine without this patch ? 2a16fc93d2c9 ("nohz: Avoid tick's double reprogramming in highres mode") I really don't know what stuff out of the two patches I posted (The above one and the fix I posted yesterday), will possible make the synchronization bad .. -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index cc0a5b6f741b..49f4278f69e2 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -1100,7 +1100,7 @@ static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer) tick_sched_handle(ts, regs); /* No need to reprogram if we are in idle or full dynticks mode */ - if (unlikely(ts->tick_stopped)) + if (unlikely(ts->tick_stopped && (is_idle_task(current) || !ts->inidle))) return HRTIMER_NORESTART;