Commit 50526968 authored by Ingo Molnar's avatar Ingo Molnar

sched clock: clean up sched_clock_cpu()

- simplify the remote clock rebasing
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: default avatarMike Galbraith <efault@gmx.de>
parent e4e4e534
......@@ -169,11 +169,8 @@ u64 sched_clock_cpu(int cpu)
lock_double_clock(scd, my_scd);
now -= my_scd->tick_raw;
now += scd->tick_raw;
now += my_scd->tick_gtod;
now -= scd->tick_gtod;
now += scd->tick_raw - my_scd->tick_raw;
now += my_scd->tick_gtod - scd->tick_gtod;
__raw_spin_unlock(&my_scd->lock);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment