From 9ac50e1575cd11346bab4343ddd8a6342c8a226b Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 28 Jan 2023 09:51:05 +0100 Subject: cpu,soc/intel: Use acpigen_write_processor_device() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use acpigen_write_processor_device() instead of deprecated acpigen_write_processor(). Change-Id: I1448e0a8845b3a1beee0a3ed744358944faf66d8 Signed-off-by: Elyes Haouas Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/72488 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Felix Held Reviewed-by: Arthur Heymans --- src/cpu/intel/haswell/acpi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cpu/intel/haswell') diff --git a/src/cpu/intel/haswell/acpi.c b/src/cpu/intel/haswell/acpi.c index a53978d012..1e1c724dbe 100644 --- a/src/cpu/intel/haswell/acpi.c +++ b/src/cpu/intel/haswell/acpi.c @@ -337,9 +337,9 @@ void generate_cpu_entries(const struct device *device) for (cpuID = 1; cpuID <= numcpus; cpuID++) { for (coreID = 1; coreID <= cores_per_package; coreID++) { - /* Generate processor \_SB.CPUx */ - acpigen_write_processor( - (cpuID - 1) * cores_per_package+coreID - 1, 0, 0); + /* Generate Scope(\_SB) { Device(CPUx */ + acpigen_write_processor_device( + (cpuID - 1) * cores_per_package+coreID - 1); /* Generate P-state tables */ generate_P_state_entries( @@ -352,7 +352,7 @@ void generate_cpu_entries(const struct device *device) generate_T_state_entries( cpuID - 1, cores_per_package); - acpigen_pop_len(); + acpigen_write_processor_device_end(); } } -- cgit v1.2.3