dm: declare Processors using the Device operator

Per ACPI 6.x chapter 19.6.109, the Processor Operator is deprecated.
Replace it with Device Operator, otherwise the iasl would complain
"Warning  3168 -
	 Legacy Processor() keyword detected. Use Device() keyword instead."
when launch post-launched VM in devicemodel.

Tracked-On: #5719

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Victor Sun 2021-02-04 14:04:47 +08:00 committed by wenlingz
parent aae7a89480
commit 6b3f1d2315
1 changed files with 5 additions and 2 deletions

View File

@ -324,8 +324,11 @@ void pm_write_dsdt(struct vmctx *ctx, int ncpu)
dsdt_line(" Scope (_PR)");
dsdt_line(" {");
for (i = 0; i < ncpu; i++) {
dsdt_line(" Processor (CPU%d, 0x%02X, 0x00000000, 0x00) {}",
i, i);
dsdt_line(" Device (CPU%d)", i);
dsdt_line(" {");
dsdt_line(" Name (_HID, \"ACPI0007\")");
dsdt_line(" Name (_UID, 0x%02X)", i);
dsdt_line(" }");
}
dsdt_line(" }");
dsdt_line("");