diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2017-01-31 04:09:45 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-02-01 09:14:02 +0100 |
commit | e2339a4caa5e83a3da5e76880d81e8a23e97aa16 (patch) | |
tree | 25d87a1bcc13287604b0036bdf7d176b23db4ea8 /arch/ia64/kernel/time.c | |
parent | ia64, sched/cputime: Move the nsecs based cputime headers to the last arch us... (diff) | |
download | linux-e2339a4caa5e83a3da5e76880d81e8a23e97aa16.tar.xz linux-e2339a4caa5e83a3da5e76880d81e8a23e97aa16.zip |
ia64: Convert vtime to use nsec units directly
There is no need anymore for this cputime_t midlayer. Let's use nsec
units directly.
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-30-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/ia64/kernel/time.c')
-rw-r--r-- | arch/ia64/kernel/time.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c index f15bca4776a7..faa116822c4c 100644 --- a/arch/ia64/kernel/time.c +++ b/arch/ia64/kernel/time.c @@ -60,7 +60,7 @@ static struct clocksource *itc_clocksource; #include <linux/kernel_stat.h> -extern cputime_t cycle_to_cputime(u64 cyc); +extern u64 cycle_to_nsec(u64 cyc); void vtime_flush(struct task_struct *tsk) { @@ -68,26 +68,26 @@ void vtime_flush(struct task_struct *tsk) u64 delta; if (ti->utime) - account_user_time(tsk, cputime_to_nsecs(cycle_to_cputime(ti->utime))); + account_user_time(tsk, cycle_to_nsec(ti->utime)); if (ti->gtime) - account_guest_time(tsk, cputime_to_nsecs(cycle_to_cputime(ti->gtime))); + account_guest_time(tsk, cycle_to_nsec(ti->gtime)); if (ti->idle_time) - account_idle_time(cputime_to_nsecs(cycle_to_cputime(ti->idle_time))); + account_idle_time(cycle_to_nsec(ti->idle_time)); if (ti->stime) { - delta = cputime_to_nsecs(cycle_to_cputime(ti->stime)); + delta = cycle_to_nsec(ti->stime); account_system_index_time(tsk, delta, CPUTIME_SYSTEM); } if (ti->hardirq_time) { - delta = cputime_to_nsecs(cycle_to_cputime(ti->hardirq_time)); + delta = cycle_to_nsec(ti->hardirq_time); account_system_index_time(tsk, delta, CPUTIME_IRQ); } if (ti->softirq_time) { - delta = cputime_to_nsecs(cycle_to_cputime(ti->softirq_time)); + delta = cycle_to_nsec(ti->softirq_time)); account_system_index_time(tsk, delta, CPUTIME_SOFTIRQ); } |