From 5412ac5c07bee22017a0ee6d1e2433917b98ea87 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 24 Feb 2014 07:57:45 -0800 Subject: [PATCH] baytrail: DPTF: Enable mainboard-specific _PDL Enable the ability for the mainboard to override the _PDL value exported by DPTF. This will limit the P-state depth when passive throttling is enabled. BUG=chrome-os-partner:17279 BRANCH=baytrail TEST=build and boot on rambi Change-Id: I700ef696ff7248997bfd8eb24785eca17d2d7f29 Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/187576 Reviewed-by: Aaron Durbin --- src/soc/intel/baytrail/acpi/dptf/cpu.asl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/baytrail/acpi/dptf/cpu.asl b/src/soc/intel/baytrail/acpi/dptf/cpu.asl index 93d434b8b4..89f9b8b02a 100644 --- a/src/soc/intel/baytrail/acpi/dptf/cpu.asl +++ b/src/soc/intel/baytrail/acpi/dptf/cpu.asl @@ -115,7 +115,10 @@ Device (TCPU) Method (_PDL) { - If (CondRefOf (\_PR.CPU0._PSS)) { + /* Check for mainboard specific _PDL override */ + If (CondRefOf (\_SB.MPDL)) { + Return (\_SB.MPDL) + } ElseIf (CondRefOf (\_PR.CPU0._PSS)) { Store (SizeOf (\_PR.CPU0._PSS ()), Local0) Decrement (Local0) Return (Local0)