summaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2021-04-22 22:02:27 +0200
committerIngo Molnar <mingo@kernel.org>2021-05-12 21:34:16 +0200
commit8fc2858e572ce761bffcade81a42ac72005e76f9 (patch)
treea143a82d5c428b4e64000b8c4307cebf08b020d2 /kernel/sched/core.c
parentsched: Make nr_iowait() return 32-bit value (diff)
downloadlinux-8fc2858e572ce761bffcade81a42ac72005e76f9.tar.xz
linux-8fc2858e572ce761bffcade81a42ac72005e76f9.zip
sched: Make nr_iowait_cpu() return 32-bit value
Runqueue ->nr_iowait counters are 32-bit anyway. Propagate 32-bitness into other code, but don't try too hard. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210422200228.1423391-3-adobriyan@gmail.com
Diffstat (limited to '')
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index fadf2bf1e86f..24fd795e4b8c 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4739,7 +4739,7 @@ unsigned long long nr_context_switches(void)
* it does become runnable.
*/
-unsigned long nr_iowait_cpu(int cpu)
+unsigned int nr_iowait_cpu(int cpu)
{
return atomic_read(&cpu_rq(cpu)->nr_iowait);
}