diff options
author | Michal Hocko <[email protected]> | 2011-08-24 09:39:30 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2011-09-08 11:10:55 +0200 |
commit | 09a1d34f8535ecf9a347ea76f7597730c2bc0c8d (patch) | |
tree | 5de69591f64e995737a62cf26d8bb3a927b27d79 /lib/mpi/mpiutil.c | |
parent | 6beea0cda8ce71c01354e688e5735c47e331e84f (diff) |
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 <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Link: http://lkml.kernel.org/r/11f23179472635ce52e78921d47a20216b872f23.1314172057.git.mhocko@suse.cz
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions