If pm_trace_enabled is set, we can (or maybe even should) just skipOK, I'll provide another version on top of John's patch and consider the pm_trace. thanks.
timekeeping_inject_sleeptime() entirely in rtc_resume() at least, because
sleep_time is almost certainly bogus in that case, even if it doesn't
overflow.
Of course, the above is still needed then.
Thanks,
Rafael