diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2021-04-22 22:02:26 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-12 21:34:15 +0200 |
commit | 9745516841a55c77163a5d549bce1374d776df54 (patch) | |
tree | 8d4f491ec8943ba11d1b859064aeaa3f397654e7 /fs/proc | |
parent | sched: Make nr_running() return 32-bit value (diff) | |
download | linux-9745516841a55c77163a5d549bce1374d776df54.tar.xz linux-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 'fs/proc')
-rw-r--r-- | fs/proc/stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 941605de7f9a..6561a06ef905 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c @@ -201,7 +201,7 @@ static int show_stat(struct seq_file *p, void *v) "btime %llu\n" "processes %lu\n" "procs_running %u\n" - "procs_blocked %lu\n", + "procs_blocked %u\n", nr_context_switches(), (unsigned long long)boottime.tv_sec, total_forks, |