diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-02 02:46:34 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-02 02:46:34 -0700 |
| commit | aaf680ea282ca196f69061476ab0e4863482e200 (patch) | |
| tree | c58ded766a10663ca6a0d9f5d3ffabf434ea7503 /fs/proc/array.c | |
| parent | abd988c41bb537a6ab20fbe421d0bd280972c0f4 (diff) | |
Fix more places where we exported our internal time
to user space. Convert to standard clock_t.
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index c688bd7997a7..200adb72d9ac 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -368,8 +368,8 @@ int proc_pid_stat(struct task_struct *task, char * buffer) priority, nice, 0UL /* removed */, - task->it_real_value, - task->start_time, + jiffies_to_clock_t(task->it_real_value), + jiffies_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, @@ -693,15 +693,15 @@ int proc_pid_cpu(struct task_struct *task, char * buffer) len = sprintf(buffer, "cpu %lu %lu\n", - task->utime, - task->stime); + jiffies_to_clock_t(task->utime), + jiffies_to_clock_t(task->stime)); for (i = 0 ; i < NR_CPUS; i++) { if (cpu_online(i)) len += sprintf(buffer + len, "cpu%d %lu %lu\n", i, - task->per_cpu_utime[i], - task->per_cpu_stime[i]); + jiffies_to_clock_t(task->per_cpu_utime[i]), + jiffies_to_clock_t(task->per_cpu_stime[i])); } return len; |
