summaryrefslogtreecommitdiff
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-02-24 17:04:59 -0800
committerJeff Garzik <jgarzik@redhat.com>2003-02-24 17:04:59 -0800
commit8542637fa47a145ac165d24b4cb2105df1aa2bd0 (patch)
treefd62e03b392045d330cbd119ad9b7591f294357c /fs/proc/array.c
parenteaa535e77e30ccdb5c3439041972c612f9c88c72 (diff)
[PATCH] make jiffies wrap 5 min after boot
From Tim Schmielau <tim@physik3.uni-rostock.de> Force jiffies to start out at five-minutes-before-wrap. To find jiffy-wrapping bugs.
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 37fb278f96d7..186864bb7898 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -358,7 +358,8 @@ int proc_pid_stat(struct task_struct *task, char * buffer)
nice,
0UL /* removed */,
jiffies_to_clock_t(task->it_real_value),
- (unsigned long long) jiffies_64_to_clock_t(task->start_time),
+ (unsigned long long)
+ jiffies_64_to_clock_t(task->start_time - INITIAL_JIFFIES),
vsize,
mm ? mm->rss : 0, /* you might want to shift this left 3 */
task->rlim[RLIMIT_RSS].rlim_cur,