summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.cz>2011-08-24 09:39:30 +0200
committerThomas Gleixner <tglx@linutronix.de>2011-09-08 11:10:55 +0200
commit09a1d34f8535ecf9a347ea76f7597730c2bc0c8d (patch)
tree5de69591f64e995737a62cf26d8bb3a927b27d79 /fs
parent6beea0cda8ce71c01354e688e5735c47e331e84f (diff)
downloadop-kernel-dev-09a1d34f8535ecf9a347ea76f7597730c2bc0c8d.zip
op-kernel-dev-09a1d34f8535ecf9a347ea76f7597730c2bc0c8d.tar.gz
nohz: Make idle/iowait counter update conditional
get_cpu_{idle,iowait}_time_us update idle/iowait counters unconditionally if the given CPU is in the idle loop. This doesn't work well outside of CPU governors which are singletons so nobody (except for IRQ) can race with them. We will need to use both functions from /proc/stat handler to properly handle nohz idle/iowait times. Make the update depend on a non NULL last_update_time argument. Signed-off-by: Michal Hocko <mhocko@suse.cz> Cc: Dave Jones <davej@redhat.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Alexey Dobriyan <adobriyan@gmail.com> Link: http://lkml.kernel.org/r/11f23179472635ce52e78921d47a20216b872f23.1314172057.git.mhocko@suse.cz Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud