Skip to content

Commit ce93758

Browse files
fyin1acrnsi
authored andcommitted
hv: pm: correct the function name
do_acpi_s3 actually not limit to do s3 operation. It depends on the paramters pm1a_cnt_val and pm1b_cnt_val. It could be s3/s5. Update the function name from xx_s3 to xx_sx. Tracked-On: #3564 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent f41f930 commit ce93758

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hypervisor/arch/x86/pm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ static uint32_t acpi_gas_read(const struct acpi_generic_address *gas)
119119
return ret;
120120
}
121121

122-
void do_acpi_s3(struct pm_s_state_data *sstate_data, uint32_t pm1a_cnt_val, uint32_t pm1b_cnt_val)
122+
/* This function supports enter S3 or S5 according to the value given to pm1a_cnt_val and pm1b_cnt_val */
123+
void do_acpi_sx(struct pm_s_state_data *sstate_data, uint32_t pm1a_cnt_val, uint32_t pm1b_cnt_val)
123124
{
124125
uint32_t s1, s2;
125126

hypervisor/arch/x86/wakeup.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
.extern restore_msrs
2626
.extern cpu_ctx
2727
.extern load_gdtr_and_tr
28-
.extern do_acpi_s3
28+
.extern do_acpi_sx
2929

3030
.global asm_enter_s3
3131
asm_enter_s3:
@@ -94,7 +94,7 @@ asm_enter_s3:
9494
/*48U=0x30=CPU_CONTEXT_OFFSET_RSI*/
9595
movq 0x30 + cpu_ctx(%rip), %rsi /* pm1a_cnt_val */
9696

97-
call do_acpi_s3
97+
call do_acpi_sx
9898

9999
/*
100100
* When system resume from S3, trampoline_start64 will

0 commit comments

Comments
 (0)