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)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 30 Mar 2016 18:21:56 +0000 (18:21 +0000)
commit12751e1d81fae508d8c47b56f532ab6e28aadd30
treed2d4f306e0c53f3544a518e81d6b15ec5bac40b3
parent895c09477932acb3888961ac7d1c122c36f067d1
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