sdm845-common: power: Handle launch and interaction hints
* MP-CTL does not handle POWER_HINT_INTERACTION and POWER_HINT_LAUNCH directly. Requests for processing are sent by Qualcomm BoostFramework (QPerformance) at the framework service level. Since we do not have BoostFramework, process POWER_HINT_INTERACTION and POWER_HINT_LAUNCH in PowerHAL to ensure a sufficient level of performance. * For proper operation, perfboostsconfig.xml file is required. Change-Id: I9fedcbaa189147c91d932711c831c2ce038a7ec7
This commit is contained in:
@@ -233,6 +233,19 @@ int perf_hint_enable(int hint_id, int duration) {
|
||||
return lock_handle;
|
||||
}
|
||||
|
||||
// same as perf_hint_enable, but with the ability to choose the type
|
||||
int perf_hint_enable_with_type(int hint_id, int duration, int type) {
|
||||
int lock_handle = 0;
|
||||
|
||||
if (qcopt_handle) {
|
||||
if (perf_hint) {
|
||||
lock_handle = perf_hint(hint_id, NULL, duration, type);
|
||||
if (lock_handle == -1) ALOGE("Failed to acquire lock.");
|
||||
}
|
||||
}
|
||||
return lock_handle;
|
||||
}
|
||||
|
||||
void release_request(int lock_handle) {
|
||||
if (qcopt_handle && perf_lock_rel) perf_lock_rel(lock_handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user