summaryrefslogtreecommitdiff
path: root/common/vboot_hash.c
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-02-08 15:39:11 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-02-09 19:51:00 -0800
commit9c053ea898fa2ed890df4f60064dcfee465b6e0f (patch)
treed588fbf32188a36e832f72c2824b1cf58980d1b9 /common/vboot_hash.c
parentc7b96d514d18697762696715f79cfbea3d7afa84 (diff)
downloadchrome-ec-9c053ea898fa2ed890df4f60064dcfee465b6e0f.tar.gz
mec1322: clock: Use full-speed 48MHz processor clock during EC boot
EC boot / hash computing can be a bottleneck for system boot time. Reduce this bottleneck by running our processor at 48 MHz through boot, until vboot hashing of RW completes. BUG=chrome-os-partner:49583 TEST=Boot chell, verify vboot hash completes within 1 sec of EC boot and 'cbmem' delta between 'vboot select&load kernel' and 'finished EC verification' is reduced to ~250 ms (which includes sysjump time). BRANCH=glados Change-Id: I18d87e685b89decef761e51517bfcfc43dcf8ef0 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/326792 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/vboot_hash.c')
-rw-r--r--common/vboot_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/vboot_hash.c b/common/vboot_hash.c
index c200d15ba2..01af769ebf 100644
--- a/common/vboot_hash.c
+++ b/common/vboot_hash.c
@@ -235,7 +235,7 @@ static void vboot_hash_init(void)
NULL, 0);
}
}
-DECLARE_HOOK(HOOK_INIT, vboot_hash_init, HOOK_PRIO_DEFAULT);
+DECLARE_HOOK(HOOK_INIT, vboot_hash_init, HOOK_PRIO_INIT_VBOOT_HASH);
#ifdef CONFIG_SAVE_VBOOT_HASH