A workaround for kernels missing CLOCK_BOOTTIME_ALARM
If the kernel doesn't have support for CLOCK_BOOTTIME_ALARM, then timer_create(CLOCK_BOOTTIME_ALARM) will fail. Added #ifdef KERNEL_MISSING_CLOCK_BOOTTIME_ALARM guard to get around the issue. Platforms that don't have CLOCK_BOOTTIME_ALARM should have the following lines in the device's "bdroid_buildcfg.h" file: /* Defined if the kernel does not have support for CLOCK_BOOTTIME_ALARM */ #define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
This commit is contained in:
parent
acd593705b
commit
a8b1498c3c
@ -22,4 +22,7 @@
|
|||||||
|
|
||||||
#define BTM_WBS_INCLUDED TRUE
|
#define BTM_WBS_INCLUDED TRUE
|
||||||
|
|
||||||
|
/* Defined if the kernel does not have support for CLOCK_BOOTTIME_ALARM */
|
||||||
|
#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user