Skip to content

Commit b854faf

Browse files
committed
vtime: Always scale generic vtime accounting results
The cputime accounting in full dynticks can be a subtle mixup of CPUs using tick based accounting and others using generic vtime. As long as the tick can have a share on producing these stats, we want to scale the result against CFS precise accounting as the tick can miss some task hiding between the periodic interrupt. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Li Zhong <zhong@linux.vnet.ibm.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Kevin Hilman <khilman@linaro.org>
1 parent b049340 commit b854faf

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎kernel/sched/cputime.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,12 +553,6 @@ static void cputime_adjust(struct task_cputime *curr,
553553
{
554554
cputime_t rtime, stime, utime, total;
555555

556-
if (vtime_accounting_enabled()) {
557-
*ut = curr->utime;
558-
*st = curr->stime;
559-
return;
560-
}
561-
562556
stime = curr->stime;
563557
total = stime + curr->utime;
564558

0 commit comments

Comments
 (0)