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>
This commit is contained in:
committed by
Patrick Georgi
parent
6df3b64c77
commit
8f05527485
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user