|
@@ -443,12 +443,12 @@ static int show_stat(struct seq_file *p, void *v)
|
|
|
unsigned long jif;
|
|
|
cputime64_t user, nice, system, idle, iowait, irq, softirq, steal;
|
|
|
u64 sum = 0;
|
|
|
+ struct timespec boottime;
|
|
|
|
|
|
user = nice = system = idle = iowait =
|
|
|
irq = softirq = steal = cputime64_zero;
|
|
|
- jif = - wall_to_monotonic.tv_sec;
|
|
|
- if (wall_to_monotonic.tv_nsec)
|
|
|
- --jif;
|
|
|
+ getboottime(&boottime);
|
|
|
+ jif = boottime.tv_sec;
|
|
|
|
|
|
for_each_possible_cpu(i) {
|
|
|
int j;
|