aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2021-04-22 23:02:26 +0300
committerIngo Molnar <mingo@kernel.org>2021-05-12 21:34:15 +0200
commit9745516841a55c77163a5d549bce1374d776df54 (patch)
tree8d4f491ec8943ba11d1b859064aeaa3f397654e7 /include/linux/sched
parentsched: Make nr_running() return 32-bit value (diff)
downloadlinux-dev-9745516841a55c77163a5d549bce1374d776df54.tar.xz
linux-dev-9745516841a55c77163a5d549bce1374d776df54.zip
sched: Make nr_iowait() return 32-bit value
Creating 2**32 tasks to wait in D-state is impossible and wasteful. Return "unsigned int" and save on REX prefixes. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210422200228.1423391-2-adobriyan@gmail.com
Diffstat (limited to 'include/linux/sched')
-rw-r--r--include/linux/sched/stat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched/stat.h b/include/linux/sched/stat.h
index 73606b3de394..81d9b539e3b7 100644
--- a/include/linux/sched/stat.h
+++ b/include/linux/sched/stat.h
@@ -19,7 +19,7 @@ DECLARE_PER_CPU(unsigned long, process_counts);
extern int nr_processes(void);
extern unsigned int nr_running(void);
extern bool single_task_running(void);
-extern unsigned long nr_iowait(void);
+extern unsigned int nr_iowait(void);
extern unsigned long nr_iowait_cpu(int cpu);
static inline int sched_info_on(void)