mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
sched: replace up_cpu_index with this_cpu
Make this_cpu is arch independent and up_cpu_index do that. In AMP mode, up_cpu_index() may return the index of the physical core. Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
#ifdef CONFIG_ARCH_LEDS_CPU_ACTIVITY
|
||||
# define LED_CPU0 8
|
||||
# define LED_CPU1 9
|
||||
# define LED_CPU (LED_CPU0 + up_cpu_index())
|
||||
# define LED_CPU (LED_CPU0 + this_cpu())
|
||||
#endif
|
||||
|
||||
/* GPIO pins used by the GPIO Subsystem */
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
#ifdef CONFIG_ARCH_LEDS_CPU_ACTIVITY
|
||||
# define LED_CPU0 8
|
||||
# define LED_CPU1 9
|
||||
# define LED_CPU (LED_CPU0 + up_cpu_index())
|
||||
# define LED_CPU (LED_CPU0 + this_cpu())
|
||||
#endif
|
||||
|
||||
/* GPIO pins used by the GPIO Subsystem */
|
||||
|
||||
Reference in New Issue
Block a user