diff options
| author | Tim Schmielau <tim@physik3.uni-rostock.de> | 2003-02-03 18:19:59 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-03 18:19:59 -0800 |
| commit | 5ad0c9427d97547b6adbde4244f9732de6ba4248 (patch) | |
| tree | ce407854411a1903b846ae4a7d60fe9c789a2366 /fs/proc/array.c | |
| parent | 4143137c9dafcddbd9b2c27db76f392029c5244a (diff) | |
[PATCH] use 64 bit jiffies: 64-bit process start time
This prevents reporting processes as having started in the future, after
32 bit jiffies wrap.
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 29b41941d83e..e135ac5a1080 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -301,7 +301,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) ppid = task->pid ? task->real_parent->pid : 0; read_unlock(&tasklist_lock); res = sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \ -%lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %ld %lu %lu %ld %lu %lu %lu %lu %lu \ +%lu %lu %lu %lu %lu %ld %ld %ld %ld %ld %ld %llu %lu %ld %lu %lu %lu %lu %lu \ %lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu\n", task->pid, task->comm, @@ -324,7 +324,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) nice, 0UL /* removed */, jiffies_to_clock_t(task->it_real_value), - jiffies_to_clock_t(task->start_time), + (unsigned long long) jiffies_64_to_clock_t(task->start_time), vsize, mm ? mm->rss : 0, /* you might want to shift this left 3 */ task->rlim[RLIMIT_RSS].rlim_cur, |
