mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
42a437de5e
Implement CMOS alarm functionality. This allows guests to set rtc alarms, which is useful when putting a Linux guest into s2idle. This change allocates a dedicated interrupt for the goldfish battery, instead of reusing the sci irq. Sharing an irq line between a wakeup interrupt and a non-wakeup interrupt doesn't work well because the non-wakeup interrupt won't be delivered to its driver while the driver is suspended, which results in the irq being permanently asserted. Simply using a dedicated interrupt for the goldfish battery is much easier than adding suspend/resume support to the Linux driver. BUG=None TEST=cargo test -p devices cmos, manual tests w/rtcwake Change-Id: I757acc64b61e414d5d9df5a1fb4770943ef985bf Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4314184 Reviewed-by: Elie Kheirallah <khei@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |