Lines Matching +full:wakeup +full:- +full:capable
1 // SPDX-License-Identifier: GPL-2.0-only
3 * kernel/power/suspend_test.c - Suspend to RAM and standby test facility.
18 * The time it takes is system-specific though, so when we test this
31 * during the irqs-are-off stages of the suspend/resume cycle... in suspend_test_start()
38 long nj = jiffies - suspend_test_start_time; in suspend_test_finish()
46 * larger -- the system was sooo slooowwww to suspend that the in suspend_test_finish()
58 * To test system suspend, we need a hands-off mechanism to resume the
59 * system. RTCs wake alarms are a common self-contained mechanism.
71 KERN_INFO "PM: test RTC wakeup from '%s' suspend\n"; in test_wakealarm()
81 printk(err_readtime, dev_name(&rtc->dev), status); in test_wakealarm()
92 printk(err_wakealarm, dev_name(&rtc->dev), status); in test_wakealarm()
99 if (status == -ENODEV) in test_wakealarm()
121 * wakeup, or (accordingly) disable it after it afterwards. in test_wakealarm()
132 if (!test_bit(RTC_FEATURE_ALARM, candidate->features)) in has_wakealarm()
134 if (!device_may_wakeup(candidate->dev.parent)) in has_wakealarm()
182 KERN_WARNING "PM: no wakealarm-capable RTC driver is ready\n"; in test_suspend()