1.打开蓝牙,界面提示“Bluetooth keeps stopping"
2.查看打印信息:bt_osi_alarm: See following patches:
`https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/? qt=grep&q=CLOCK_BOOTTIME_ALARM
3.sdk-9.0\system\bt\osi\src\alarm.cc
//#if (KERNEL_MISSING_CLOCK_BOOTTIME_ALARM == TRUE)
static const clockid_t CLOCK_ID_ALARM = CLOCK_BOOTTIME;
//#else
//static const clockid_t CLOCK_ID_ALARM = CLOCK_BOOTTIME_ALARM;
//#endif
或者
+#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
#if (KERNEL_MISSING_CLOCK_BOOTTIME_ALARM == TRUE)
static const clockid_t CLOCK_ID_ALARM = CLOCK_BOOTTIME;