You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "hujun260 (via GitHub)" <gi...@apache.org> on 2025/08/01 02:11:15 UTC
Re: [PR] sched: Fix smp scheduling [nuttx]
hujun260 commented on code in PR #16673:
URL: https://github.com/apache/nuttx/pull/16673#discussion_r2246732767
##########
arch/xtensa/src/common/xtensa_sigdeliver.c:
##########
@@ -154,12 +154,11 @@ void xtensa_sig_deliver(void)
*/
board_autoled_off(LED_SIGNAL);
+
#ifdef CONFIG_SMP
/* We need to keep the IRQ lock until task switching */
- rtcb->irqcount++;
- leave_critical_section((regs[REG_PS]));
- rtcb->irqcount--;
+ leave_critical_section(up_irq_save());
Review Comment:
This is just another way of implementation. Isn't the old one also fine?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org