mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Ingo Molnar: "Fix the guest-nice cpustat values in /proc" * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/cputime, proc/stat: Fix incorrect guest nice cpustat value
This commit is contained in:
commit
4340ebd19f
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ static int show_stat(struct seq_file *p, void *v)
|
||||||
softirq += cpustat[CPUTIME_SOFTIRQ];
|
softirq += cpustat[CPUTIME_SOFTIRQ];
|
||||||
steal += cpustat[CPUTIME_STEAL];
|
steal += cpustat[CPUTIME_STEAL];
|
||||||
guest += cpustat[CPUTIME_GUEST];
|
guest += cpustat[CPUTIME_GUEST];
|
||||||
guest_nice += cpustat[CPUTIME_USER];
|
guest_nice += cpustat[CPUTIME_GUEST_NICE];
|
||||||
sum += kstat_cpu_irqs_sum(i);
|
sum += kstat_cpu_irqs_sum(i);
|
||||||
sum += arch_irq_stat_cpu(i);
|
sum += arch_irq_stat_cpu(i);
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ static int show_stat(struct seq_file *p, void *v)
|
||||||
softirq = cpustat[CPUTIME_SOFTIRQ];
|
softirq = cpustat[CPUTIME_SOFTIRQ];
|
||||||
steal = cpustat[CPUTIME_STEAL];
|
steal = cpustat[CPUTIME_STEAL];
|
||||||
guest = cpustat[CPUTIME_GUEST];
|
guest = cpustat[CPUTIME_GUEST];
|
||||||
guest_nice = cpustat[CPUTIME_USER];
|
guest_nice = cpustat[CPUTIME_GUEST_NICE];
|
||||||
seq_printf(p, "cpu%d", i);
|
seq_printf(p, "cpu%d", i);
|
||||||
seq_put_decimal_ull(p, " ", nsec_to_clock_t(user));
|
seq_put_decimal_ull(p, " ", nsec_to_clock_t(user));
|
||||||
seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice));
|
seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue