Skip to content
Closed
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
2 changes: 1 addition & 1 deletion arch/riscv/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static inline void riscv_ipi_set_virq_range(int virq, int nr)

#endif /* CONFIG_SMP */

#if defined(CONFIG_HOTPLUG_CPU) && (CONFIG_SMP)
#if defined(CONFIG_HOTPLUG_CPU)
bool cpu_has_hotplug(unsigned int cpu);
#else
static inline bool cpu_has_hotplug(unsigned int cpu)
Expand Down
3 changes: 1 addition & 2 deletions arch/riscv/kernel/cpu-hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ int __cpu_disable(void)
return 0;
}

#ifdef CONFIG_HOTPLUG_CPU
/*
* Called on the thread which is asking for a CPU to be shutdown, if the
* CPU reported dead to the hotplug core.
Expand Down Expand Up @@ -75,4 +74,4 @@ void __noreturn arch_cpu_idle_dead(void)
/* It should never reach here */
BUG();
}
#endif