This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 62e8fc9d535fe8670c9d54bbce341a0ef7ae19d0 Author: pangzhen1 <[email protected]> AuthorDate: Thu Oct 9 18:40:30 2025 +0800 arch.h: declare up_affinity_irq() outside of SMP mode There is no need to restrict the up_affinity_irq function to SMP mode only. The implementation of this function does not impose SMP mode limitations either: the interrupt controller drivers that provide it (GICv2/GICv3, tricore, intel64) build it in every mode. Declare it under CONFIG_ARCH_NOINTC like up_enable_irq() and up_disable_irq(), so that it can also be used when several cores run separate images (AMP). Signed-off-by: pangzhen1 <[email protected]> --- include/nuttx/arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index 6cc023dcdae..6c64748b785 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -1903,7 +1903,7 @@ void up_disable_irq(int irq); * ****************************************************************************/ -#ifdef CONFIG_SMP +#ifndef CONFIG_ARCH_NOINTC void up_affinity_irq(int irq, cpu_set_t cpuset); #endif
