simplelink: power: leave interrupts disabled in Power_sleep

Zephyr expects interrupts to stay disabled when running hooks during
resume. Hence we must modify Power_sleep to leave interrupts disabled.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
Vincent Wan 2019-10-30 14:02:08 -07:00 committed by Kumar Gala
parent ccee61e5bd
commit 879c7d08ff
1 changed files with 5 additions and 1 deletions

View File

@ -857,7 +857,11 @@ int_fast16_t Power_sleep(uint_fast16_t sleepState)
}
/* 16. Re-enable interrupts */
CPUcpsie();
/* For Zephyr, post suspend hooks need to run with interrupts
* disabled after Power_sleep returns. So we need to leave
* interrupts disabled.
*/
/* CPUcpsie(); */
/*
* 17. Signal all clients registered for late post-sleep