linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] nohz: Remove update_ts_time_stat from tick_nohz_start_idle
@ 2012-01-24 17:59 Frederic Weisbecker
  2012-01-24 17:59 ` [PATCH 2/3] nohz: Remove ts->inidle checks before restarting the tick Frederic Weisbecker
  2012-01-24 17:59 ` [PATCH 3/3] timer: Fix bad idle check on irq entry Frederic Weisbecker
  0 siblings, 2 replies; 5+ messages in thread
From: Frederic Weisbecker @ 2012-01-24 17:59 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar
  Cc: LKML, Michal Hocko, Arjan van de Ven, Peter Zijlstra,
	John Stultz, Frederic Weisbecker

From: Michal Hocko <mhocko@suse.cz>

There is no reason to call update_ts_time_stat from tick_nohz_start_idle
anymore (after e0e37c20 sched: Eliminate the ts->idle_lastupdate field)
when we updated idle_lastupdate unconditionally.

We haven't set idle_active yet and do not provide last_update_time so
the whole call end up being just 2 wasted branches.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
CC: Arjan van de Ven <arjan@linux.intel.com>
CC: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
---
 kernel/time/tick-sched.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 7656642..85a67e8 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -186,8 +186,6 @@ static ktime_t tick_nohz_start_idle(int cpu, struct tick_sched *ts)
 
 	now = ktime_get();
 
-	update_ts_time_stats(cpu, ts, now, NULL);
-
 	ts->idle_entrytime = now;
 	ts->idle_active = 1;
 	sched_clock_idle_sleep_event();
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-15 19:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-24 17:59 [PATCH 1/3] nohz: Remove update_ts_time_stat from tick_nohz_start_idle Frederic Weisbecker
2012-01-24 17:59 ` [PATCH 2/3] nohz: Remove ts->inidle checks before restarting the tick Frederic Weisbecker
2012-02-15 19:38   ` [tip:timers/core] nohz: Remove ts-> Einidle " tip-bot for Frederic Weisbecker
2012-01-24 17:59 ` [PATCH 3/3] timer: Fix bad idle check on irq entry Frederic Weisbecker
2012-02-15 19:39   ` [tip:timers/core] " tip-bot for Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).