summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/chipset_haswell.c8
-rw-r--r--common/extpower_falco.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/common/chipset_haswell.c b/common/chipset_haswell.c
index f4417ce2a1..49428ff52f 100644
--- a/common/chipset_haswell.c
+++ b/common/chipset_haswell.c
@@ -105,7 +105,13 @@ void chipset_reset(int cold_reset)
void chipset_throttle_cpu(int throttle)
{
- /* FIXME CPRINTF("[%T %s(%d)]\n", __func__, throttle);*/
+ if (throttle_cpu != throttle)
+ CPRINTF("[%T %s(%d)]\n", __func__, throttle);
+ throttle_cpu = throttle;
+
+ /* Immediately set throttling if CPU is on */
+ if (chipset_in_state(CHIPSET_STATE_ON))
+ gpio_set_level(GPIO_CPU_PROCHOT, throttle);
}
enum x86_state x86_chipset_init(void)
diff --git a/common/extpower_falco.c b/common/extpower_falco.c
index d7f1509a3a..51f0f1c28d 100644
--- a/common/extpower_falco.c
+++ b/common/extpower_falco.c
@@ -188,7 +188,8 @@ bad:
test_export_static int ap_is_throttled;
static void set_throttle(int on)
{
- host_throttle_cpu(on);
+ /* Use the big ugly PROCHOT hammer to throttle the CPU */
+ chipset_throttle_cpu(on);
ap_is_throttled = on;
}