Skip to content

Commit fd389cb

Browse files
chejianjwenlingz
authored andcommitted
dm: disable ACPI PM timer
ACPI PM timer is disabled in FADT since there is no pm timer emulation in device model now. Tracked-On: #2962 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
1 parent 98dfc6f commit fd389cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

devicemodel/hw/platform/acpi/acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ basl_fwrite_fadt(FILE *fp, struct vmctx *ctx)
374374
EFPRINTF(fp, "[0001]\t\tPM1 Event Block Length : 04\n");
375375
EFPRINTF(fp, "[0001]\t\tPM1 Control Block Length : 02\n");
376376
EFPRINTF(fp, "[0001]\t\tPM2 Control Block Length : 00\n");
377-
EFPRINTF(fp, "[0001]\t\tPM Timer Block Length : 04\n");
377+
EFPRINTF(fp, "[0001]\t\tPM Timer Block Length : 00\n");
378378
EFPRINTF(fp, "[0001]\t\tGPE0 Block Length : 00\n");
379379
EFPRINTF(fp, "[0001]\t\tGPE1 Block Length : 00\n");
380380
EFPRINTF(fp, "[0001]\t\tGPE1 Base Offset : 00\n");

devicemodel/include/acpi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#define PM1A_EVT_ADDR 0x400
3939

40-
#define IO_PMTMR 0x408 /* 4-byte i/o port for the timer */
40+
#define IO_PMTMR 0x0 /* PM Timer is disabled in ACPI */
4141

4242
/* All dynamic table entry no. */
4343
#define NHLT_ENTRY_NO 8

0 commit comments

Comments
 (0)