sched/cputime: Rename vtime_account_system() to vtime_account_kernel()
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 3 Oct 2019 16:17:44 +0000 (18:17 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 Oct 2019 10:39:25 +0000 (12:39 +0200)
commitf83eeb1a01689b2691f6f56629ac9f66de8d41c2
tree3d975ad9a229dce79f98f3cee80570717139dd06
parent68e7a4d66b0ce04bf18ff2ffded5596ab3618585
sched/cputime: Rename vtime_account_system() to vtime_account_kernel()

vtime_account_system() decides if we need to account the time to the
system (__vtime_account_system()) or to the guest (vtime_account_guest()).

So this function is a misnomer as we are on a higher level than
"system". All we know when we call that function is that we are
accounting kernel cputime. Whether it belongs to guest or system time
is a lower level detail.

Rename this function to vtime_account_kernel(). This will clarify things
and avoid too many underscored vtime_account_system() versions.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wanpeng Li <wanpengli@tencent.com>
Cc: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Link: https://lkml.kernel.org/r/20191003161745.28464-2-frederic@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/ia64/kernel/time.c
arch/powerpc/kernel/time.c
arch/s390/kernel/vtime.c
include/linux/context_tracking.h
include/linux/vtime.h
kernel/sched/cputime.c