diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2021-01-07 11:44:27 -0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-18 05:44:10 +0000 |
commit | 8e8cf301c25c0f1b846b65bd3108cbab46667f31 (patch) | |
tree | 10d646cf5ef0e1f3e2c0415bab5eb517efc3e33b /board/host/gpio.inc | |
parent | d2736a71fb342419ed7e548affe252e93e95196c (diff) | |
download | chrome-ec-firmware-12573.191.B.tar.gz |
common: motion: fix races at shutdownfirmware-12573.191.B
Do not use collection_rate blindly after a function may have slept:
the HOOK task could have run suspend() or suspend() call and set it to
0.
Fixes 104f5257 ("motion: Control on which task sensor setting functions are running on")
[CL:2553347]
Conflicts:
common/motion_sense.c: Remove indentation that must have happen
at merge.
BUG=b:176918310, b:170703322, b:251069579
BRANCH=kukui
TEST=unit test.
Change-Id: I9ef13ceca195db4b48866f1e53f9408fb2bbf595
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2616137
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
(cherry picked from commit ea99e40f31445e67659c09b32cab6857cad8b83e)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3960781
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'board/host/gpio.inc')
0 files changed, 0 insertions, 0 deletions