arm64: Add vmap_stack header file
commited8b20d457d72e9e2a30533b436fdb4ea1c70b38
authorJames Morse <james.morse@arm.com>
Mon, 8 Jan 2018 15:38:10 +0000 (8 15:38 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 13 Jan 2018 10:45:03 +0000 (13 10:45 +0000)
tree47db6e0db6a65fc98f18d1b99a52397d058bfb04
parentad6eb31ef90355993eb55ff77e0e855ae7d91e4c
arm64: Add vmap_stack header file

Today the arm64 arch code allocates an extra IRQ stack per-cpu. If we
also have SDEI and VMAP stacks we need two extra per-cpu VMAP stacks.

Move the VMAP stack allocation out to a helper in a new header file.
This avoids missing THREADINFO_GFP, or getting the all-important alignment
wrong.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/vmap_stack.h [new file with mode: 0644]
arch/arm64/kernel/irq.c