diff options
author | Jett Rink <jettrink@chromium.org> | 2020-11-06 14:18:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-09 19:13:17 +0000 |
commit | 1b4e189e44379cf1db7639f2549441a8d678a978 (patch) | |
tree | b3e9758c6bc59808cb6e3d11bfc8b3f684795e9c /zephyr/shim/src/hooks.c | |
parent | 8141e8d7eeeb915f2b529de39570e2efc8b86466 (diff) | |
download | chrome-ec-1b4e189e44379cf1db7639f2549441a8d678a978.tar.gz |
zephyr: move from SYS_INIT to main
We are going to need to perform initialization in Zephyr's main before
we start the EC tasks or call the INIT hooks. If we rely on SYS_INIT,
all of that happens before main is called.
BRANCH=none
BUG=none
TEST=pass tasks unit tests and run on volteer
Cq-Depend: chromium:2523462
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: Icd035695b86fc9690cea88887902be61d9b37a18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2523380
Tested-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/src/hooks.c')
-rw-r--r-- | zephyr/shim/src/hooks.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/zephyr/shim/src/hooks.c b/zephyr/shim/src/hooks.c index 04b6b59461..5011ed79ea 100644 --- a/zephyr/shim/src/hooks.c +++ b/zephyr/shim/src/hooks.c @@ -85,11 +85,3 @@ void hook_notify(enum hook_type type) for (p = hook_registry[type]; p; p = p->next) p->routine(); } - -static int run_init_hooks(const struct device *unused) -{ - ARG_UNUSED(unused); - hook_notify(HOOK_INIT); - return 0; -} -SYS_INIT(run_init_hooks, APPLICATION, 2); |