summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2020-11-13 10:01:33 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-18 02:57:08 +0000
commit1dcfc09283df045a0071d549d90de04bd90a60f0 (patch)
treee3c6b3b18a95cab251b79ede559f401e0983c25d /chip
parenteb665ee6e1768177dacfa0cadfee783ad8a5d09a (diff)
downloadchrome-ec-1dcfc09283df045a0071d549d90de04bd90a60f0.tar.gz
it83xx: pull more functions into __ram_code section
Because we have space in the section, so we pulled more functions into the section. If a function is cached in __ram_code section (static cache), we can save latency of fetching code of the function from flash. (Fetching 64 bytes code from flash takes about 4us latency) BUG=none BRANCH=none TEST=buildall. Asurada and Drawcia are both able to boot to kernel. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I8b413bd577c4e5b73a5c67018d17955da1ed0c55 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2535899 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/it83xx/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/it83xx/clock.c b/chip/it83xx/clock.c
index d38197379a..3927091eff 100644
--- a/chip/it83xx/clock.c
+++ b/chip/it83xx/clock.c
@@ -449,7 +449,7 @@ int clock_ec_wake_from_sleep(void)
return ec_sleep;
}
-void clock_cpu_standby(void)
+void __ram_code clock_cpu_standby(void)
{
/* standby instruction */
if (IS_ENABLED(CHIP_CORE_NDS32)) {
@@ -598,7 +598,7 @@ defined(CONFIG_HOSTCMD_ESPI)
/**
* Low power idle task. Executed when no tasks are ready to be scheduled.
*/
-void __idle(void)
+void __ram_code __idle(void)
{
console_expire_time.val = get_time().val + CONSOLE_IN_USE_ON_BOOT_TIME;
/* init hw timer and clock source is 32.768 KHz */