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:
parent
ccee61e5bd
commit
879c7d08ff
|
@ -857,7 +857,11 @@ int_fast16_t Power_sleep(uint_fast16_t sleepState)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 16. Re-enable interrupts */
|
/* 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
|
* 17. Signal all clients registered for late post-sleep
|
||||||
|
|
Loading…
Reference in New Issue