diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2023-06-13 21:30:17 -0400 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-06-22 10:38:36 -0700 |
commit | dd69d07a5a6c5a9ada85321ab0695e7978fc6f3e (patch) | |
tree | e91b621c1ba73dbc2e91136626245f199eef936e /arch/riscv/Kconfig | |
parent | 163e76cc6ef43b7a5e9b6e245a6d6667c9d9b4a7 (diff) | |
download | lwn-dd69d07a5a6c5a9ada85321ab0695e7978fc6f3e.tar.gz lwn-dd69d07a5a6c5a9ada85321ab0695e7978fc6f3e.zip |
riscv: stack: Support HAVE_SOFTIRQ_ON_OWN_STACK
Add the HAVE_SOFTIRQ_ON_OWN_STACK feature for the IRQ_STACKS config, and
the irq and softirq use the same irq_stack of percpu.
Tested-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20230614013018.2168426-3-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/Kconfig')
-rw-r--r-- | arch/riscv/Kconfig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a8368fe7be14..f515cb101c19 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -591,11 +591,13 @@ config FPU If you don't know what to do here, say Y. config IRQ_STACKS - bool "Independent irq stacks" if EXPERT + bool "Independent irq & softirq stacks" if EXPERT default y select HAVE_IRQ_EXIT_ON_IRQ_STACK + select HAVE_SOFTIRQ_ON_OWN_STACK help - Add independent irq stacks for percpu to prevent kernel stack overflows. + Add independent irq & softirq stacks for percpu to prevent kernel stack + overflows. We may save some memory footprint by disabling IRQ_STACKS. endmenu # "Platform type" |