Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119870
b: refs/heads/master
c: ca7e716
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Dec 15, 2008
1 parent 8c51d62 commit 47e806d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5279585ff2bedc8180da5bdf8aa3ff1736466de2
refs/heads/master: ca7e716c7833aeaeb8fedd6d004c5f5d5e14d325
6 changes: 3 additions & 3 deletions trunk/kernel/sched_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ static u64 __update_sched_clock(struct sched_clock_data *scd, u64 now)

/*
* scd->clock = clamp(scd->tick_gtod + delta,
* max(scd->tick_gtod, scd->clock),
* max(scd->clock, scd->tick_gtod + TICK_NSEC));
* max(scd->tick_gtod, scd->clock),
* scd->tick_gtod + TICK_NSEC);
*/

clock = scd->tick_gtod + delta;
min_clock = wrap_max(scd->tick_gtod, scd->clock);
max_clock = wrap_max(scd->clock, scd->tick_gtod + TICK_NSEC);
max_clock = scd->tick_gtod + TICK_NSEC;

clock = wrap_max(clock, min_clock);
clock = wrap_min(clock, max_clock);
Expand Down

0 comments on commit 47e806d

Please sign in to comment.