From d6aca0b7b14780a03c83e283f940f56c474a77dd Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 16 Jul 2012 12:14:49 -0700 Subject: ACPI: Add a method to notify OS to re-read _PPC Split this behavior out from PNOT() so the OS can update _PPC limit without re-reading C-state tables. Change-Id: I81b9111a4866f6b9916f74ac57a3caefaa77c565 Signed-off-by: Duncan Laurie Reviewed-on: http://review.coreboot.org/1342 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/cpu/intel/model_206ax/acpi/cpu.asl | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/cpu/intel/model_206ax/acpi/cpu.asl b/src/cpu/intel/model_206ax/acpi/cpu.asl index a9d5eebaec..558a9d3663 100644 --- a/src/cpu/intel/model_206ax/acpi/cpu.asl +++ b/src/cpu/intel/model_206ax/acpi/cpu.asl @@ -33,29 +33,40 @@ External (\_PR.CPU7, DeviceObj) Method (PNOT) { If (LGreaterEqual (\PCNT, 2)) { - Notify (\_PR.CPU0, 0x80) // _PPC Notify (\_PR.CPU0, 0x81) // _CST - Notify (\_PR.CPU1, 0x80) // _PPC Notify (\_PR.CPU1, 0x81) // _CST } If (LGreaterEqual (\PCNT, 4)) { - Notify (\_PR.CPU2, 0x80) // _PPC Notify (\_PR.CPU2, 0x81) // _CST - Notify (\_PR.CPU3, 0x80) // _PPC Notify (\_PR.CPU3, 0x81) // _CST } If (LGreaterEqual (\PCNT, 8)) { - Notify (\_PR.CPU4, 0x80) // _PPC Notify (\_PR.CPU4, 0x81) // _CST - Notify (\_PR.CPU5, 0x80) // _PPC Notify (\_PR.CPU5, 0x81) // _CST - Notify (\_PR.CPU6, 0x80) // _PPC Notify (\_PR.CPU6, 0x81) // _CST - Notify (\_PR.CPU7, 0x80) // _PPC Notify (\_PR.CPU7, 0x81) // _CST } } +/* Notify OS to re-read CPU _PPC limit, assuming ^2 CPU count */ +Method (PPCN) +{ + If (LGreaterEqual (\PCNT, 2)) { + Notify (\_PR.CPU0, 0x80) // _PPC + Notify (\_PR.CPU1, 0x80) // _PPC + } + If (LGreaterEqual (\PCNT, 4)) { + Notify (\_PR.CPU2, 0x80) // _PPC + Notify (\_PR.CPU3, 0x80) // _PPC + } + If (LGreaterEqual (\PCNT, 8)) { + Notify (\_PR.CPU4, 0x80) // _PPC + Notify (\_PR.CPU5, 0x80) // _PPC + Notify (\_PR.CPU6, 0x80) // _PPC + Notify (\_PR.CPU7, 0x80) // _PPC + } +} + /* Notify OS to re-read Throttle Limit tables, assuming ^2 CPU count */ Method (TNOT) { -- cgit v1.2.3