|
@@ -181,12 +181,12 @@ static void clocksource_watchdog(unsigned long data)
|
|
|
|
|
|
resumed = test_and_clear_bit(0, &watchdog_resumed);
|
|
resumed = test_and_clear_bit(0, &watchdog_resumed);
|
|
|
|
|
|
- wdnow = watchdog->read();
|
|
|
|
|
|
+ wdnow = watchdog->read(watchdog);
|
|
wd_nsec = cyc2ns(watchdog, (wdnow - watchdog_last) & watchdog->mask);
|
|
wd_nsec = cyc2ns(watchdog, (wdnow - watchdog_last) & watchdog->mask);
|
|
watchdog_last = wdnow;
|
|
watchdog_last = wdnow;
|
|
|
|
|
|
list_for_each_entry_safe(cs, tmp, &watchdog_list, wd_list) {
|
|
list_for_each_entry_safe(cs, tmp, &watchdog_list, wd_list) {
|
|
- csnow = cs->read();
|
|
|
|
|
|
+ csnow = cs->read(cs);
|
|
|
|
|
|
if (unlikely(resumed)) {
|
|
if (unlikely(resumed)) {
|
|
cs->wd_last = csnow;
|
|
cs->wd_last = csnow;
|
|
@@ -247,7 +247,7 @@ static void clocksource_check_watchdog(struct clocksource *cs)
|
|
|
|
|
|
list_add(&cs->wd_list, &watchdog_list);
|
|
list_add(&cs->wd_list, &watchdog_list);
|
|
if (!started && watchdog) {
|
|
if (!started && watchdog) {
|
|
- watchdog_last = watchdog->read();
|
|
|
|
|
|
+ watchdog_last = watchdog->read(watchdog);
|
|
watchdog_timer.expires = jiffies + WATCHDOG_INTERVAL;
|
|
watchdog_timer.expires = jiffies + WATCHDOG_INTERVAL;
|
|
add_timer_on(&watchdog_timer,
|
|
add_timer_on(&watchdog_timer,
|
|
cpumask_first(cpu_online_mask));
|
|
cpumask_first(cpu_online_mask));
|
|
@@ -268,7 +268,7 @@ static void clocksource_check_watchdog(struct clocksource *cs)
|
|
cse->flags &= ~CLOCK_SOURCE_WATCHDOG;
|
|
cse->flags &= ~CLOCK_SOURCE_WATCHDOG;
|
|
/* Start if list is not empty */
|
|
/* Start if list is not empty */
|
|
if (!list_empty(&watchdog_list)) {
|
|
if (!list_empty(&watchdog_list)) {
|
|
- watchdog_last = watchdog->read();
|
|
|
|
|
|
+ watchdog_last = watchdog->read(watchdog);
|
|
watchdog_timer.expires =
|
|
watchdog_timer.expires =
|
|
jiffies + WATCHDOG_INTERVAL;
|
|
jiffies + WATCHDOG_INTERVAL;
|
|
add_timer_on(&watchdog_timer,
|
|
add_timer_on(&watchdog_timer,
|