diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2023-01-28 09:51:05 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-04-14 17:33:25 +0000 |
commit | 9ac50e1575cd11346bab4343ddd8a6342c8a226b (patch) | |
tree | e73a951a53095cc91aa98cedc46c61439cc93250 /src/soc/intel | |
parent | d33cbf1803d0fc465c1bbef1da58beeb2628643e (diff) |
cpu,soc/intel: Use acpigen_write_processor_device()
Use acpigen_write_processor_device() instead of deprecated
acpigen_write_processor().
Change-Id: I1448e0a8845b3a1beee0a3ed744358944faf66d8
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72488
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/baytrail/acpi.c | 6 | ||||
-rw-r--r-- | src/soc/intel/braswell/acpi.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/soc/intel/baytrail/acpi.c b/src/soc/intel/baytrail/acpi.c index 75c28637ce..42e4b2616a 100644 --- a/src/soc/intel/baytrail/acpi.c +++ b/src/soc/intel/baytrail/acpi.c @@ -266,8 +266,8 @@ void generate_cpu_entries(const struct device *device) const struct pattrs *pattrs = pattrs_get(); for (core = 0; core < pattrs->num_cpus; core++) { - /* Generate processor \_SB.CPUx */ - acpigen_write_processor(core, 0, 0); + /* Generate Scope(\_SB) { Device(CPUx */ + acpigen_write_processor_device(core); /* Generate P-state tables */ generate_p_state_entries(core, pattrs->num_cpus); @@ -278,7 +278,7 @@ void generate_cpu_entries(const struct device *device) /* Generate T-state tables */ generate_t_state_entries(core, pattrs->num_cpus); - acpigen_pop_len(); + acpigen_write_processor_device_end(); } /* PPKG is usually used for thermal management diff --git a/src/soc/intel/braswell/acpi.c b/src/soc/intel/braswell/acpi.c index 46a87719d6..9ef7a754a6 100644 --- a/src/soc/intel/braswell/acpi.c +++ b/src/soc/intel/braswell/acpi.c @@ -282,8 +282,8 @@ void generate_cpu_entries(const struct device *device) const struct pattrs *pattrs = pattrs_get(); for (core = 0; core < pattrs->num_cpus; core++) { - /* Generate processor \_SB.CPUx */ - acpigen_write_processor(core, 0, 0); + /* Generate Scope(\_SB) { Device(CPUx */ + acpigen_write_processor_device(core); /* Generate P-state tables */ generate_p_state_entries(core, pattrs->num_cpus); @@ -294,7 +294,7 @@ void generate_cpu_entries(const struct device *device) /* Generate T-state tables */ generate_t_state_entries(core, pattrs->num_cpus); - acpigen_pop_len(); + acpigen_write_processor_device_end(); } /* PPKG is usually used for thermal management |