summaryrefslogtreecommitdiff
path: root/chip/mec1322/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322/clock.c')
-rw-r--r--chip/mec1322/clock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/chip/mec1322/clock.c b/chip/mec1322/clock.c
index 8a5fb73047..6a1674891e 100644
--- a/chip/mec1322/clock.c
+++ b/chip/mec1322/clock.c
@@ -80,18 +80,20 @@ void clock_init(void)
* Speed through boot + vboot hash calculation, dropping our processor clock
* only after vboot hashing is completed.
*/
+static void clock_turbo_disable(void);
+DECLARE_DEFERRED(clock_turbo_disable);
+
static void clock_turbo_disable(void)
{
#ifdef CONFIG_VBOOT_HASH
if (vboot_hash_in_progress())
- hook_call_deferred(clock_turbo_disable, 100 * MSEC);
+ hook_call_deferred(&clock_turbo_disable_data, 100 * MSEC);
else
#endif
/* Use 12 MHz processor clock for power savings */
MEC1322_PCR_PROC_CLK_CTL = 4;
}
DECLARE_HOOK(HOOK_INIT, clock_turbo_disable, HOOK_PRIO_INIT_VBOOT_HASH + 1);
-DECLARE_DEFERRED(clock_turbo_disable);
#ifdef CONFIG_LOW_POWER_IDLE
/**