OSDN Git Service

Avoid using alarm APIs for LPM when Idle timeout is zero
authorJaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
Fri, 12 Feb 2016 15:03:06 +0000 (20:33 +0530)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 30 Mar 2016 18:28:08 +0000 (11:28 -0700)
commit89cceaf3bc30be8a746de9963bace378b4d3de15
treeb0a5f2ca68e0bc5c5c1645f0b76dbabf6f5d6020
parent29dca0643501998b14bb17c10402256417eea8aa
Avoid using alarm APIs for LPM when Idle timeout is zero

For some vendors the idle timer value is configured to zero. But with
the current LPM timer implementation it will use the alarm APIs to
schedule wake_deassert(), which introduces context switch overhead.
The code is modified to trigger the wake_deassert immediately if the
idle timeout value is configured to zero. These changes improve OPP
throughput.

Change-Id: Ic48e7b990ccf55525a0d15b65c03daedfe03c582
Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
hci/src/low_power_manager.c