Disable interrupts first when idling core (#1883)
This commit is contained in:
parent
c3a3526aad
commit
d45a11f9e7
1 changed files with 1 additions and 1 deletions
|
|
@ -165,8 +165,8 @@ static void __no_inline_not_in_flash_func(IdleThisCore)(void *param) {
|
|||
(void) param;
|
||||
while (true) {
|
||||
ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
|
||||
vTaskPreemptionDisable(nullptr);
|
||||
portDISABLE_INTERRUPTS();
|
||||
vTaskPreemptionDisable(nullptr);
|
||||
__otherCoreIdled = true;
|
||||
while (__otherCoreIdled) {
|
||||
/* noop */
|
||||
|
|
|
|||
Loading…
Reference in a new issue