xiaoxiang781216 commented on code in PR #14030: URL: https://github.com/apache/nuttx/pull/14030#discussion_r1794803921
########## arch/x86_64/include/irq.h: ########## @@ -83,11 +83,19 @@ extern "C" * Name: up_cpu_index * * Description: - * Return the real core number regardless CONFIG_SMP setting + * Return an index in the range of 0 through (CONFIG_SMP_NCPUS-1) that + * corresponds to the currently executing CPU. + * + * Input Parameters: + * None + * + * Returned Value: + * An integer index in the range of 0 through (CONFIG_SMP_NCPUS-1) that + * corresponds to the currently executing CPU. * ****************************************************************************/ -#ifdef CONFIG_ARCH_HAVE_MULTICPU +#ifdef CONFIG_SMP Review Comment: revert the change ########## arch/x86_64/include/irq.h: ########## @@ -100,7 +108,9 @@ static inline_function int up_cpu_index(void) return cpu; } -#endif /* CONFIG_ARCH_HAVE_MULTICPU */ Review Comment: ditto -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
