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

Commit f7139745 authored by Steve Kondik's avatar Steve Kondik Committed by Steve Kondik
Browse files

vibrator: Add a way to run the vibrator with reduced priority

 * The current vibrator implementation runs with URGENT_DISPLAY
   priority. This is normally what you want- keyboard and input
   haptics should be fast. In the case of an incoming call ringtone
   though, it's possible for the high priority thread to cause
   starvation if the device is under heavy load. This can result
   in a missed call.
 * Add a hidden API which lets us call the vibrator at
   FOREGROUND -1 priority which will be used from Telecomm for
   this use case.

CYNGNOS-969

Change-Id: Id0770218e1f39cffaeaf170531ae8f3fc3884eee
(cherry picked from commit 65d865bf)
parent bba0bc7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment