mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-08 00:17:01 +00:00
For data structure types "struct vm", its name is identical with variable name in the same scope. This is a MISRA C violation. Naming convention rule:If the data structure type is used by multi modules, its corresponding logic resource is exposed to external components (such as SOS, UOS), and its name meaning is simplistic (such as vcpu, vm), its name needs prefix "acrn_". The following udpates are made: struct vm *vm-->struct acrn_vm *vm Tracked-On: #861 Signed-off-by: Xiangyang Wu <xiangyang.wu@linux.intel.com>
16 lines
376 B
C
16 lines
376 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef GUEST_PM_H
|
|
#define GUEST_PM_H
|
|
|
|
void vm_setup_cpu_state(struct acrn_vm *vm);
|
|
int vm_load_pm_s_state(struct acrn_vm *vm);
|
|
int validate_pstate(const struct acrn_vm *vm, uint64_t perf_ctl);
|
|
void register_pm1ab_handler(struct acrn_vm *vm);
|
|
|
|
#endif /* PM_H */
|