Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356281
b: refs/heads/master
c: c06b4f1
h: refs/heads/master
i:
  356279: 09adb67
v: v3
  • Loading branch information
Namhyung Kim authored and Ingo Molnar committed Feb 19, 2013
1 parent 73ba8bc commit 99c84e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: f86f75548233a2be7379ac446e91729710d4a5f7
refs/heads/master: c06b4f1947213cd0902610fafcabac02d49ad728
10 changes: 4 additions & 6 deletions trunk/kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ static int get_softlockup_thresh(void)
* resolution, and we don't need to waste time with a big divide when
* 2^30ns == 1.074s.
*/
static unsigned long get_timestamp(int this_cpu)
static unsigned long get_timestamp(void)
{
return cpu_clock(this_cpu) >> 30LL; /* 2^30 ~= 10^9 */
return local_clock() >> 30LL; /* 2^30 ~= 10^9 */
}

static void set_sample_period(void)
Expand All @@ -132,9 +132,7 @@ static void set_sample_period(void)
/* Commands for resetting the watchdog */
static void __touch_watchdog(void)
{
int this_cpu = smp_processor_id();

__this_cpu_write(watchdog_touch_ts, get_timestamp(this_cpu));
__this_cpu_write(watchdog_touch_ts, get_timestamp());
}

void touch_softlockup_watchdog(void)
Expand Down Expand Up @@ -195,7 +193,7 @@ static int is_hardlockup(void)

static int is_softlockup(unsigned long touch_ts)
{
unsigned long now = get_timestamp(smp_processor_id());
unsigned long now = get_timestamp();

/* Warn about unreasonable delays: */
if (time_after(now, touch_ts + get_softlockup_thresh()))
Expand Down

0 comments on commit 99c84e7

Please sign in to comment.