mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
haven: hcall: Add Virtual PM group get state API
The state information of the Virtual PM group can be obtained through this API. Change-Id: I0a00e8bfe38f7908ed20bc105f66149097e6532b Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
This commit is contained in:
parent
fa43b983dd
commit
921d71ac53
1 changed files with 14 additions and 0 deletions
|
|
@ -283,6 +283,20 @@ static inline int hh_hcall_vcpu_affinity_set(hh_capid_t vcpu_capid,
|
|||
return ret;
|
||||
}
|
||||
|
||||
static inline int hh_hcall_vpm_group_get_state(u64 vpmg_capid,
|
||||
uint64_t *vpmg_state)
|
||||
{
|
||||
int ret;
|
||||
struct hh_hcall_resp _resp = {0};
|
||||
|
||||
ret = _hh_hcall(0x6045,
|
||||
(struct hh_hcall_args){ vpmg_capid, 0 },
|
||||
&_resp);
|
||||
*vpmg_state = _resp.resp1;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline int hh_hcall_trace_update_class_flags(
|
||||
uint64_t set_flags, uint64_t clear_flags,
|
||||
uint64_t *new_flags)
|
||||
|
|
|
|||
Loading…
Reference in a new issue