Skip to content

Commit

Permalink
sched clock: clean up sched_clock_cpu()
Browse files Browse the repository at this point in the history
- simplify the remote clock rebasing

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Mike Galbraith <efault@gmx.de>
  • Loading branch information
Ingo Molnar committed Jul 31, 2008
1 parent e4e4e53 commit 5052696
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions kernel/sched_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5052696

Please sign in to comment.