mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-08 00:01:05 +02:00
Use deferable timer in background operations thread, so that it won't cause unnecessary wakeups. Typically, wakeups are seen in the range 60ms to 2secs (for HZ=100) after the thread is scheduled out. In general, during this delay the processor can go into sleep, if there is no other activity. Since, the work done in this background operation is not critical and can be handled as soon as when timer expires and processor wakes up for other critical events, we mark the timer responsible for wakeup of this thread as deferable timer. Otherwise, the processor wakesup unnecessarily to handle the background operations causing higher power consumption in idle state. Change-Id: Ic168525c6b33600ad23017d00ea9723cf8a738d2 Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>