lkml.org 
[lkml]   [2019]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/6] procfs: Use all-in-one vtime aware kcpustat accessor
From
Date
Looks like a copy-paste error. I think it should be:

- guest_nice += cpustat[CPUTIME_USER];
+ guest_nice += cpustat[CPUTIME_GUEST_NICE];

and

- guest_nice = cpustat[CPUTIME_USER];
+ guest_nice = cpustat[CPUTIME_GUEST_NICE];

With best regards,
Paul Orlyk

On 11/21/19 4:44 AM, Frederic Weisbecker wrote:
> + guest += cpustat[CPUTIME_GUEST];
> + guest_nice += cpustat[CPUTIME_USER];
> + sum += kstat_cpu_irqs_sum(i);
>
> + guest = cpustat[CPUTIME_GUEST];
> + guest_nice = cpustat[CPUTIME_USER];
> seq_printf(p, "cpu%d", i);

\
 
 \ /
  Last update: 2019-12-08 17:05    [W:0.115 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site