mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
![Sebastian Andrzej Siewior](/assets/img/avatar_default.png)
Remove the CONFIG_PREEMPT_RT symbol from the ifdef around do_softirq_own_stack() and move it to Kconfig instead. Enable softirq stacks based on SOFTIRQ_ON_OWN_STACK which depends on HAVE_SOFTIRQ_ON_OWN_STACK and its default value is set to !PREEMPT_RT. This ensures that softirq stacks are not used on PREEMPT_RT and avoids a 'select' statement on an option which has a 'depends' statement. Link: https://lore.kernel.org/YvN5E%2FPrHfUhggr7@linutronix.de Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
14 lines
281 B
C
14 lines
281 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef __ASM_GENERIC_SOFTIRQ_STACK_H
|
|
#define __ASM_GENERIC_SOFTIRQ_STACK_H
|
|
|
|
#ifdef CONFIG_SOFTIRQ_ON_OWN_STACK
|
|
void do_softirq_own_stack(void);
|
|
#else
|
|
static inline void do_softirq_own_stack(void)
|
|
{
|
|
__do_softirq();
|
|
}
|
|
#endif
|
|
|
|
#endif
|