Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2002-02-27 20:45:11 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-02-27 20:45:11 -0800
commit52f4fc0bb8d242e2835d6147016fed99f66ce8cd (patch)
tree3c943c69be81f9971b1e21fabf8cf3f915a8c69c
parent353655012091b779b99180bb32fc94daaf808624 (diff)
Fix off-by-one error reported by Anton Lavrentiev: we no
longer count the idle thread in "nr_threads", so we should not discount it when returning sysinfo() information.
-rw-r--r--kernel/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/info.c b/kernel/info.c
index 6f30b3aec606..5894f25497b7 100644
--- a/kernel/info.c
+++ b/kernel/info.c
@@ -26,7 +26,7 @@ asmlinkage long sys_sysinfo(struct sysinfo *info)
val.loads[1] = avenrun[1] << (SI_LOAD_SHIFT - FSHIFT);
val.loads[2] = avenrun[2] << (SI_LOAD_SHIFT - FSHIFT);
- val.procs = nr_threads-1;
+ val.procs = nr_threads;
sti();
si_meminfo(&val);