Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311921
b: refs/heads/master
c: 196951e
h: refs/heads/master
i:
  311919: c6f00cb
v: v3
  • Loading branch information
Thomas Gleixner committed Jul 11, 2012
1 parent b4cb243 commit 0a3f5b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 5b9fe759a678e05be4937ddf03d50e950207c1c0
refs/heads/master: 196951e91262fccda81147d2bcf7fdab08668b40
5 changes: 3 additions & 2 deletions trunk/kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1263,11 +1263,10 @@ void hrtimer_interrupt(struct clock_event_device *dev)
cpu_base->nr_events++;
dev->next_event.tv64 = KTIME_MAX;

raw_spin_lock(&cpu_base->lock);
entry_time = now = ktime_get();
retry:
expires_next.tv64 = KTIME_MAX;

raw_spin_lock(&cpu_base->lock);
/*
* We set expires_next to KTIME_MAX here with cpu_base->lock
* held to prevent that a timer is enqueued in our queue via
Expand Down Expand Up @@ -1344,6 +1343,7 @@ void hrtimer_interrupt(struct clock_event_device *dev)
* interrupt routine. We give it 3 attempts to avoid
* overreacting on some spurious event.
*/
raw_spin_lock(&cpu_base->lock);
now = ktime_get();
cpu_base->nr_retries++;
if (++retries < 3)
Expand All @@ -1356,6 +1356,7 @@ void hrtimer_interrupt(struct clock_event_device *dev)
*/
cpu_base->nr_hangs++;
cpu_base->hang_detected = 1;
raw_spin_unlock(&cpu_base->lock);
delta = ktime_sub(now, entry_time);
if (delta.tv64 > cpu_base->max_hang_time.tv64)
cpu_base->max_hang_time = delta;
Expand Down

0 comments on commit 0a3f5b8

Please sign in to comment.