Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135735
b: refs/heads/master
c: 6626bff
h: refs/heads/master
i:
  135733: 63a17f9
  135731: aca6123
  135727: 96fa374
v: v3
  • Loading branch information
Thomas Gleixner committed Jan 25, 2009
1 parent 3279ee1 commit 9b1ea79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b74f9e0e005baf12a2df6aaeef7d7134137792b
refs/heads/master: 6626bff24578753808c8b5bd4f1619e14e980f0f
7 changes: 7 additions & 0 deletions trunk/kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,13 @@ static void hrtimer_force_reprogram(struct hrtimer_cpu_base *cpu_base)
continue;
timer = rb_entry(base->first, struct hrtimer, node);
expires = ktime_sub(hrtimer_get_expires(timer), base->offset);
/*
* clock_was_set() has changed base->offset so the
* result might be negative. Fix it up to prevent a
* false positive in clockevents_program_event()
*/
if (expires.tv64 < 0)
expires.tv64 = 0;
if (expires.tv64 < cpu_base->expires_next.tv64)
cpu_base->expires_next = expires;
}
Expand Down

0 comments on commit 9b1ea79

Please sign in to comment.