summaryrefslogtreecommitdiff
path: root/fs/proc/loadavg.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2018-04-19 13:30:57 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2018-04-19 13:30:57 +1000
commit6c2db30cee55dad6872c51d087872314ea1b6e0a (patch)
tree29817f8bc5ad3861f8729c80f8b7b213e597fb64 /fs/proc/loadavg.c
parent252c5f39268c0ec2f5ce68f0c0d53e84d4317984 (diff)
parentfdb1a3b69d1b9ef528b8a728682499e3dcd7719d (diff)
downloadlinux-next-6c2db30cee55dad6872c51d087872314ea1b6e0a.tar.gz
Merge branch 'akpm-current/current'
Diffstat (limited to 'fs/proc/loadavg.c')
-rw-r--r--fs/proc/loadavg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/loadavg.c b/fs/proc/loadavg.c
index a000d7547479..b572cc865b92 100644
--- a/fs/proc/loadavg.c
+++ b/fs/proc/loadavg.c
@@ -24,7 +24,7 @@ static int loadavg_proc_show(struct seq_file *m, void *v)
LOAD_INT(avnrun[1]), LOAD_FRAC(avnrun[1]),
LOAD_INT(avnrun[2]), LOAD_FRAC(avnrun[2]),
nr_running(), nr_threads,
- idr_get_cursor(&task_active_pid_ns(current)->idr));
+ idr_get_cursor(&task_active_pid_ns(current)->idr) - 1);
return 0;
}