Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23ccbad0 authored by Sonny Sasaka's avatar Sonny Sasaka
Browse files

floss: Ignore wakelock_acquire error in alarm

It's useful for alarm to still behave normally ignoring wakelock_acquire
error, for example in a Linux development environment where the kernel
is not built with /sys/power/wake_lock. Otherwise, some functionalities
may be disturbed due to alarm not behaving normally.

Bug: 204263376
Tag: #floss
Test: Run floss on Linux without /sys/power/wake_lock and exercise
bonding with LE mouse.

Change-Id: I0a419221ef2f2b1463aa89b2812be004360756a7
parent db22c31e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -474,7 +474,6 @@ static void reschedule_root_alarm(void) {
    if (!timer_set) {
      if (!wakelock_acquire()) {
        LOG_ERROR("%s unable to acquire wake lock", __func__);
        goto done;
      }
    }