summaryrefslogtreecommitdiff
path: root/chip/stm32
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2018-06-06 17:20:14 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-06-11 01:02:07 -0700
commit7c6f336362770c85a5df02064fd274eee1ff8555 (patch)
treee501743f66445b56c0e2daabb8882a5e5bf544f3 /chip/stm32
parentd30c60b08152176f4eb78eb812ec3070070f8640 (diff)
downloadchrome-ec-7c6f336362770c85a5df02064fd274eee1ff8555.tar.gz
it83xx: Disable interrupts before checking condition of allowing sleep
Because switching a task context might change these conditions and resulting in EC entered deep sleep mode where it shouldn't. So we disable interrupts to avoid task scheduling during checking these conditions. BUG=b:80131632 BRANCH=none TEST=Ensure EC is entering deep doze mode, and check if watchdog warning fired after 48 hours. Change-Id: Ie12239ecd71a3894b379c19e985d23231018ea7c Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/1080567 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32')
0 files changed, 0 insertions, 0 deletions