Skip to content

Commit eb2f4ae

Browse files
authored
Merge pull request #5866 from 0xc0170/fix_tickless_deepsleep
RTX idle: sleep without locked deep sleep fix
2 parents 467e25f + 9a18732 commit eb2f4ae

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rtos/TARGET_CORTEX/mbed_rtx_idle.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,7 @@ static void default_idle_hook(void)
198198
if (ticks_to_sleep) {
199199
os_timer->schedule_tick(ticks_to_sleep);
200200

201-
sleep_manager_lock_deep_sleep();
202201
sleep();
203-
sleep_manager_unlock_deep_sleep();
204202

205203
os_timer->cancel_tick();
206204
// calculate how long we slept

0 commit comments

Comments
 (0)