diff options
Diffstat (limited to 'fs/proc/proc_misc.c')
-rw-r--r-- | fs/proc/proc_misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 5fd49e47f83a..19c9cbf1c320 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -443,12 +443,12 @@ static int show_stat(struct seq_file *p, void *v) | |||
443 | unsigned long jif; | 443 | unsigned long jif; |
444 | cputime64_t user, nice, system, idle, iowait, irq, softirq, steal; | 444 | cputime64_t user, nice, system, idle, iowait, irq, softirq, steal; |
445 | u64 sum = 0; | 445 | u64 sum = 0; |
446 | struct timespec boottime; | ||
446 | 447 | ||
447 | user = nice = system = idle = iowait = | 448 | user = nice = system = idle = iowait = |
448 | irq = softirq = steal = cputime64_zero; | 449 | irq = softirq = steal = cputime64_zero; |
449 | jif = - wall_to_monotonic.tv_sec; | 450 | getboottime(&boottime); |
450 | if (wall_to_monotonic.tv_nsec) | 451 | jif = boottime.tv_sec; |
451 | --jif; | ||
452 | 452 | ||
453 | for_each_possible_cpu(i) { | 453 | for_each_possible_cpu(i) { |
454 | int j; | 454 | int j; |