summaryrefslogtreecommitdiff
path: root/kernel/time/timekeeping.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time/timekeeping.c')
-rw-r--r--kernel/time/timekeeping.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
index baeeb5c87cf..3644ba5c7d9 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -904,6 +904,7 @@ static void timekeeping_resume(void)
raw_spin_lock_irqsave(&timekeeper_lock, flags);
write_seqcount_begin(&timekeeper_seq);
+ printk(KERN_DEBUG "TIME: calc suspend time.");
/*
* After system resumes, we need to calculate the suspended time and
@@ -920,6 +921,7 @@ static void timekeeping_resume(void)
cycle_now = clock->read(clock);
if ((clock->flags & CLOCK_SOURCE_SUSPEND_NONSTOP) &&
cycle_now > clock->cycle_last) {
+ printk(KERN_DEBUG "TIME: Use nonstop clk source.");
u64 num, max = ULLONG_MAX;
u32 mult = clock->mult;
u32 shift = clock->shift;
@@ -943,6 +945,7 @@ static void timekeeping_resume(void)
ts_delta = ns_to_timespec(nsec);
suspendtime_found = true;
} else if (timespec_compare(&ts_new, &timekeeping_suspend_time) > 0) {
+ printk(KERN_DEBUG "TIME: Using other time source.");
ts_delta = timespec_sub(ts_new, timekeeping_suspend_time);
suspendtime_found = true;
}
@@ -950,6 +953,7 @@ static void timekeeping_resume(void)
if (suspendtime_found)
__timekeeping_inject_sleeptime(tk, &ts_delta);
+ printk(KERN_DEBUG "TIME: Rebase the last cycle value");
/* Re-base the last cycle value */
tk->cycle_last = clock->cycle_last = cycle_now;
tk->ntp_error = 0;
@@ -958,6 +962,7 @@ static void timekeeping_resume(void)
write_seqcount_end(&timekeeper_seq);
raw_spin_unlock_irqrestore(&timekeeper_lock, flags);
+ printk(KERN_DEBUG "TIME: Touch softlockup watchdog");
touch_softlockup_watchdog();
clockevents_notify(CLOCK_EVT_NOTIFY_RESUME, NULL);