aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2021-04-22 23:02:25 +0300
committerIngo Molnar <mingo@kernel.org>2021-05-12 21:34:14 +0200
commit01aee8fd7fb23049e2b52abadbe1f7b5e94a52d2 (patch)
tree3724c38c4e041eea6037ff5fc206972457f6cc6b /include/linux/sched
parentsched: Fix leftover comment typos (diff)
downloadlinux-dev-01aee8fd7fb23049e2b52abadbe1f7b5e94a52d2.tar.xz
linux-dev-01aee8fd7fb23049e2b52abadbe1f7b5e94a52d2.zip
sched: Make nr_running() return 32-bit value
Creating 2**32 tasks is impossible due to futex pid limits and wasteful anyway. Nobody has done it. Bring nr_running() into 32-bit world to 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-1-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 939c3ec9e1b9..73606b3de394 100644
--- a/include/linux/sched/stat.h
+++ b/include/linux/sched/stat.h
@@ -17,7 +17,7 @@ extern unsigned long total_forks;
extern int nr_threads;
DECLARE_PER_CPU(unsigned long, process_counts);
extern int nr_processes(void);
-extern unsigned long nr_running(void);
+extern unsigned int nr_running(void);
extern bool single_task_running(void);
extern unsigned long nr_iowait(void);
extern unsigned long nr_iowait_cpu(int cpu);