summaryrefslogtreecommitdiff
path: root/src/cpu/intel
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2018-11-28 13:18:57 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-11-29 12:19:31 +0000
commit8f05527485776aab00115cfcb627c5eeb6debcde (patch)
tree0412937a9227802f36c2c5cee17a0a736a0705a0 /src/cpu/intel
parent6df3b64c77a868ab8526b980561ed2be3fe392b6 (diff)
arch/x86/acpigen.c: Add a method to notify all CPU cores
Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/29895 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/cpu/intel')
-rw-r--r--src/cpu/intel/speedstep/acpi.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/cpu/intel/speedstep/acpi.c b/src/cpu/intel/speedstep/acpi.c
index 0feaa2f4c2..b5e2c9e9e2 100644
--- a/src/cpu/intel/speedstep/acpi.c
+++ b/src/cpu/intel/speedstep/acpi.c
@@ -166,15 +166,5 @@ void generate_cpu_entries(struct device *device)
of the first and only package. */
acpigen_write_processor_package("PPKG", 0, cores_per_package);
- /* Add a method to notify processor nodes */
- acpigen_write_method("\\_PR.CNOT", 1);
- for (coreID = 0; coreID < cores_per_package; coreID++) {
- char buffer[DEVICE_PATH_MAX];
- snprintf(buffer, sizeof(buffer), "\\_PR.CP%c%c",
- '0' + coreID / 10, '0' + coreID % 10);
- acpigen_emit_byte(NOTIFY_OP);
- acpigen_emit_namestring(buffer);
- acpigen_emit_byte(ARG0_OP);
- }
- acpigen_pop_len();
+ acpigen_write_processor_cnot(cores_per_package);
}