sched/cputime: Push time to account_idle_time() in nsecs
This is one more step toward converting cputime accounting to pure nsecs. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@redhat.com> Cc: Stanislaw Gruszka <sgruszka@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Cc: Wanpeng Li <wanpeng.li@hotmail.com> Link: http://lkml.kernel.org/r/1485832191-26889-24-git-send-email-fweisbec@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

committed by
Ingo Molnar

parent
be9095ed4f
commit
18b43a9bd7
@@ -73,7 +73,7 @@ void vtime_flush(struct task_struct *tsk)
|
||||
account_guest_time(tsk, cycle_to_cputime(ti->gtime));
|
||||
|
||||
if (ti->idle_time)
|
||||
account_idle_time(cycle_to_cputime(ti->idle_time));
|
||||
account_idle_time(cputime_to_nsecs(cycle_to_cputime(ti->idle_time)));
|
||||
|
||||
if (ti->stime) {
|
||||
delta = cycle_to_cputime(ti->stime);
|
||||
|
Reference in New Issue
Block a user