]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
time: track accurate idle time with tick_sched.idle_sleeptime
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>
Wed, 30 Jan 2008 12:30:04 +0000 (13:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:30:04 +0000 (13:30 +0100)
commit6378ddb592158db4b42197f1bc8666228800e379
treef9b1e671dfd12fb221f6140dd231ccb14cd9f27e
parentbbe4d18ac2e058c56adb0cd71f49d9ed3216a405
time: track accurate idle time with tick_sched.idle_sleeptime

Current idle time in kstat is based on jiffies and is coarse grained.
tick_sched.idle_sleeptime is making some attempt to keep track of idle time
in a fine grained manner.  But, it is not handling the time spent in
interrupts fully.

Make tick_sched.idle_sleeptime accurate with respect to time spent on
handling interrupts and also add tick_sched.idle_lastupdate, which keeps
track of last time when idle_sleeptime was updated.

This statistics will be crucial for cpufreq-ondemand governor, which can
shed some conservative gaurd band that is uses today while setting the
frequency.  The ondemand changes that uses the exact idle time is coming
soon.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/tick.h
kernel/softirq.c
kernel/time/tick-sched.c