Skip to content

Commit d45a11f

Browse files
authored
Disable interrupts first when idling core (#1883)
1 parent c3a3526 commit d45a11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/FreeRTOS/src/variantHooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ static void __no_inline_not_in_flash_func(IdleThisCore)(void *param) {
165165
(void) param;
166166
while (true) {
167167
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
168-
vTaskPreemptionDisable(nullptr);
169168
portDISABLE_INTERRUPTS();
169+
vTaskPreemptionDisable(nullptr);
170170
__otherCoreIdled = true;
171171
while (__otherCoreIdled) {
172172
/* noop */

0 commit comments

Comments
 (0)