aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/base.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 0697fd089de8..ab1b439923e6 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -314,7 +314,9 @@ static int proc_oom_score(struct task_struct *task, char *buffer)
314 struct timespec uptime; 314 struct timespec uptime;
315 315
316 do_posix_clock_monotonic_gettime(&uptime); 316 do_posix_clock_monotonic_gettime(&uptime);
317 read_lock(&tasklist_lock);
317 points = badness(task, uptime.tv_sec); 318 points = badness(task, uptime.tv_sec);
319 read_unlock(&tasklist_lock);
318 return sprintf(buffer, "%lu\n", points); 320 return sprintf(buffer, "%lu\n", points);
319} 321}
320 322