Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sched: replace up_cpu_index with this_cpu #14954

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arch/arm/src/rp23xx/rp23xx_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void up_disable_irq(int irq)

#ifdef CONFIG_SMP
if (irq >= RP23XX_IRQ_EXTINT && irq != RP23XX_SIO_IRQ_FIFO &&
up_cpu_index() != 0)
this_cpu() != 0)
{
/* Must be handled by Core 0 */

Expand Down Expand Up @@ -361,7 +361,7 @@ void up_enable_irq(int irq)

#ifdef CONFIG_SMP
if (irq >= RP23XX_IRQ_EXTINT && irq != RP23XX_SIO_IRQ_FIFO &&
up_cpu_index() != 0)
this_cpu() != 0)
{
/* Must be handled by Core 0 */

Expand Down
2 changes: 1 addition & 1 deletion arch/x86_64/src/intel64/intel64_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static inline void up_idtinit(void)
#if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 3
static inline void x86_64_color_intstack(void)
{
x86_64_stack_color((void *)up_get_intstackbase(up_cpu_index()),
x86_64_stack_color((void *)up_get_intstackbase(this_cpu()),
IRQ_STACK_SIZE);
}
#else
Expand Down
Loading