OSDN Git Service

Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails
authorAlistair Strachan <astrachan@google.com>
Sat, 2 Mar 2019 01:45:09 +0000 (17:45 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 15 Oct 2019 08:35:09 +0000 (16:35 +0800)
commit9249baa69be947a1015015f14b573a20b423e56e
tree4663d8f3d66442008e47171580b2f27b1cd9aed0
parentf020a6431ff9e7bfcdfd06055f18b634162be7e0
Fall back to CLOCK_BOOTTIME if CLOCK_BOOTTIME_ALARM fails

If the cuttlefish device does not have an rtc device (such as the crosvm
VMM) the bt osi layer can promote crashes due to it not being able to
create a CLOCK_BOOTTIME_ALARM timer. Bring back a fallback but enable it
at runtime instead of compile time.

Bug: 126955943
Test: run with cuttlefish
Change-Id: I3ab0282b3e8fde776aa7b37d5772c8f62cf957bf
osi/src/alarm.c