Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56393
b: refs/heads/master
c: 8f89441
h: refs/heads/master
i:
  56391: a58d7ef
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed May 15, 2007
1 parent e91f292 commit 48ee019
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 3c46bdcaec53eda069a8a9cd60621c7431aa7842
refs/heads/master: 8f89441b37536fea92b1ed7004e5e2dda011473d
10 changes: 3 additions & 7 deletions trunk/kernel/time/clocksource.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static struct clocksource *watchdog;
static struct timer_list watchdog_timer;
static DEFINE_SPINLOCK(watchdog_lock);
static cycle_t watchdog_last;
static int watchdog_resumed;
static unsigned long watchdog_resumed;

/*
* Interval: 0.5sec Threshold: 0.0625s
Expand Down Expand Up @@ -104,9 +104,7 @@ static void clocksource_watchdog(unsigned long data)

spin_lock(&watchdog_lock);

resumed = watchdog_resumed;
if (unlikely(resumed))
watchdog_resumed = 0;
resumed = test_and_clear_bit(0, &watchdog_resumed);

wdnow = watchdog->read();
wd_nsec = cyc2ns(watchdog, (wdnow - watchdog_last) & watchdog->mask);
Expand Down Expand Up @@ -151,9 +149,7 @@ static void clocksource_watchdog(unsigned long data)
}
static void clocksource_resume_watchdog(void)
{
spin_lock(&watchdog_lock);
watchdog_resumed = 1;
spin_unlock(&watchdog_lock);
set_bit(0, &watchdog_resumed);
}

static void clocksource_check_watchdog(struct clocksource *cs)
Expand Down

0 comments on commit 48ee019

Please sign in to comment.