diff options
| author | Christoph Lameter <[email protected]> | 2016-05-20 16:58:21 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-05-20 17:58:30 -0700 |
| commit | 7b8da4c7f0777489f8690115b5fd7704ac0abb8f (patch) | |
| tree | 0d150de8fb6406d48ab505e5fb012a1880470b6e /tools/perf/scripts/python/bin | |
| parent | 51038171b7ecf0017fbe3e06bd246eaa26f4d2e7 (diff) | |
vmstat: get rid of the ugly cpu_stat_off variable
The cpu_stat_off variable is unecessary since we can check if a
workqueue request is pending otherwise. Removal of cpu_stat_off makes
it pretty easy for the vmstat shepherd to ensure that the proper things
happen.
Removing the state also removes all races related to it. Should a
workqueue not be scheduled as needed for vmstat_update then the shepherd
will notice and schedule it as needed. Should a workqueue be
unecessarily scheduled then the vmstat updater will disable it.
[[email protected]: fix indentation, per Michal]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Christoph Lameter <[email protected]>
Cc: Tejun Heo <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions