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>
This commit is contained in:
Elyes Haouas 2023-01-28 09:51:05 +01:00 committed by Kyösti Mälkki
parent d33cbf1803
commit 9ac50e1575
5 changed files with 18 additions and 18 deletions

View File

@ -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();
}
}

View File

@ -215,9 +215,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(
@ -230,7 +230,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();
}
}

View File

@ -306,9 +306,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(CPU */
acpigen_write_processor_device(
(cpuID-1)*cores_per_package+coreID-1);
/* Generate P-state tables */
generate_P_state_entries(
@ -321,7 +321,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();
}
}

View File

@ -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

View File

@ -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