To associate power state to power lock correctly, trigger power state
transition to normal, instead of acquire wakelock directly, when it
receives power lock request. The transition to normal will eventually
acquire wakelock.
Change-Id: Iede02aff8d7e2a71ea19a970ab9019d6ad50dd57
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
}
_D("pid=%d(%s) request CPU lock for %dms", pid, node->comm, timeout);
- power_acquire_wakelock();
+ power_request_change_state(DEVICED_POWER_STATE_NORMAL, HAL_DEVICE_POWER_TRANSITION_REASON_POWER_LOCK);
if (timeout > 0)
node->timer_id = g_timeout_add(timeout, lock_expired_cb, node);