Skip to content

Commit 6f9078c

Browse files
authored
Merge pull request #5202 from dhalbert/nrf-background-callback-critical-section
nrf: remove critical section around sd_app_evt_wait()
2 parents 57b4d01 + c72c679 commit 6f9078c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ports/nrf/supervisor/port.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,9 @@ void port_idle_until_interrupt(void) {
364364

365365
sd_softdevice_is_enabled(&sd_enabled);
366366
if (sd_enabled) {
367-
uint8_t is_nested_critical_region;
368-
sd_nvic_critical_region_enter(&is_nested_critical_region);
369367
if (!background_callback_pending()) {
370368
sd_app_evt_wait();
371369
}
372-
sd_nvic_critical_region_exit(is_nested_critical_region);
373370
} else {
374371
// Call wait for interrupt ourselves if the SD isn't enabled.
375372
// Note that `wfi` should be called with interrupts disabled,

0 commit comments

Comments
 (0)