|
@@ -29,6 +29,7 @@
|
|
#include <linux/irqchip.h>
|
|
#include <linux/irqchip.h>
|
|
#include <linux/seq_file.h>
|
|
#include <linux/seq_file.h>
|
|
#include <linux/vmalloc.h>
|
|
#include <linux/vmalloc.h>
|
|
|
|
+#include <asm/vmap_stack.h>
|
|
|
|
|
|
unsigned long irq_err_count;
|
|
unsigned long irq_err_count;
|
|
|
|
|
|
@@ -58,17 +59,7 @@ static void init_irq_stacks(void)
|
|
unsigned long *p;
|
|
unsigned long *p;
|
|
|
|
|
|
for_each_possible_cpu(cpu) {
|
|
for_each_possible_cpu(cpu) {
|
|
- /*
|
|
|
|
- * To ensure that VMAP'd stack overflow detection works
|
|
|
|
- * correctly, the IRQ stacks need to have the same
|
|
|
|
- * alignment as other stacks.
|
|
|
|
- */
|
|
|
|
- p = __vmalloc_node_range(IRQ_STACK_SIZE, THREAD_ALIGN,
|
|
|
|
- VMALLOC_START, VMALLOC_END,
|
|
|
|
- THREADINFO_GFP, PAGE_KERNEL,
|
|
|
|
- 0, cpu_to_node(cpu),
|
|
|
|
- __builtin_return_address(0));
|
|
|
|
-
|
|
|
|
|
|
+ p = arch_alloc_vmap_stack(IRQ_STACK_SIZE, cpu_to_node(cpu));
|
|
per_cpu(irq_stack_ptr, cpu) = p;
|
|
per_cpu(irq_stack_ptr, cpu) = p;
|
|
}
|
|
}
|
|
}
|
|
}
|