sched: Remove needless round trip nsecs <-> tick conversion of steal time
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 5 Mar 2014 16:05:57 +0000 (17:05 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 13 Mar 2014 14:56:44 +0000 (15:56 +0100)
commit300a9d887ea221f344962506f724e02101bacc08
treeee4bbd30f5a02a957211351b358fc23f33c68681
parentdee08a72deefac251267ed2717717596aa8b6818
sched: Remove needless round trip nsecs <-> tick conversion of steal time

When update_rq_clock_task() accounts the pending steal time for a task,
it converts the steal delta from nsecs to tick then from tick to nsecs.

There is no apparent good reason for doing that though because both
the task clock and the prev steal delta are u64 and store values
in nsecs.

So lets remove the needless conversion.

Cc: Ingo Molnar <mingo@kernel.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/sched/core.c
kernel/sched/sched.h