sched: Factor out nr_iowait and nr_iowait_cpu
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 4 Oct 2018 12:04:02 +0000 (14:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Oct 2018 14:49:26 +0000 (16:49 +0200)
commit145d952a29320dea883246bcb24ba1da7ac4bb7f
treeb921a75f5e0cdd2fcd52925cce9dc5825157ea2b
parentbd6bf7c10484f026505814b690104cdef27ed460
sched: Factor out nr_iowait and nr_iowait_cpu

The function nr_iowait_cpu() can be used directly by nr_iowait() instead
of duplicating code.

Call nr_iowait_cpu() from nr_iowait()

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/sched/core.c