powerpc: Unconditionally enabled irq stacks
Irq stacks provide an essential protection from stack overflows through external interrupts, at the cost of two additionals stacks per CPU. Enable them unconditionally to simplify the kernel build and prevent people from accidentally disabling them. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
b636f1379e
commit
f1ba9a5b2a
@@ -432,7 +432,6 @@ static u64 slb0_limit(void)
|
||||
return 1UL << SID_SHIFT;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IRQSTACKS
|
||||
static void __init irqstack_early_init(void)
|
||||
{
|
||||
u64 limit = slb0_limit();
|
||||
@@ -451,9 +450,6 @@ static void __init irqstack_early_init(void)
|
||||
THREAD_SIZE, limit));
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define irqstack_early_init()
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PPC_BOOK3E
|
||||
static void __init exc_lvl_early_init(void)
|
||||
|
Reference in New Issue
Block a user