sdm845-common: power: Use monotonic time for interaction boost

Using the wall clock will cause boosts to be disabled
when/if the clock is adjusted backward.

Bug: 29191415
Bug: 29208304
Change-Id: I8af5f40b46d996ce7bccb8324fc186e2f3a5b267
This commit is contained in:
Wei Wang
2016-06-07 18:44:31 -07:00
committed by Luca Stefani
parent 9137790aed
commit 842f449872
3 changed files with 23 additions and 11 deletions

View File

@@ -45,3 +45,5 @@ void release_request(int lock_handle);
int interaction_with_handle(int lock_handle, int duration, int num_args, int opt_list[]);
int perf_hint_enable(int hint_id, int duration);
int perf_hint_enable_with_type(int hint_id, int duration, int type);
long long calc_timespan_us(struct timespec start, struct timespec end);