diff options
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r-- | fs/proc/array.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 98e78e2f18d6..680c913575f0 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
@@ -440,8 +440,9 @@ static int do_task_stat(struct task_struct *task, char * buffer, int whole) | |||
440 | 440 | ||
441 | /* Temporary variable needed for gcc-2.96 */ | 441 | /* Temporary variable needed for gcc-2.96 */ |
442 | /* convert timespec -> nsec*/ | 442 | /* convert timespec -> nsec*/ |
443 | start_time = (unsigned long long)task->start_time.tv_sec * NSEC_PER_SEC | 443 | start_time = |
444 | + task->start_time.tv_nsec; | 444 | (unsigned long long)task->real_start_time.tv_sec * NSEC_PER_SEC |
445 | + task->real_start_time.tv_nsec; | ||
445 | /* convert nsec -> ticks */ | 446 | /* convert nsec -> ticks */ |
446 | start_time = nsec_to_clock_t(start_time); | 447 | start_time = nsec_to_clock_t(start_time); |
447 | 448 | ||