MIPS: irq: Allocate accurate order pages for irq stack
authorLiu Xiang <liu.xiang6@zte.com.cn>
Sat, 16 Feb 2019 09:12:24 +0000 (17:12 +0800)
committerPaul Burton <paul.burton@mips.com>
Tue, 19 Feb 2019 20:45:01 +0000 (12:45 -0800)
commit72faa7a773ca59336f3c889e878de81445c5a85c
tree2d7240cb8daa56078451ea784820c90f9c9f5a16
parentd411da06abbe4c7cad0cc16b509d10b43da783a8
MIPS: irq: Allocate accurate order pages for irq stack

The irq_pages is the number of pages for irq stack, but not the
order which is needed by __get_free_pages().
We can use get_order() to calculate the accurate order.

Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: fe8bd18ffea5 ("MIPS: Introduce irq_stack")
Cc: linux-mips@vger.kernel.org
Cc: stable@vger.kernel.org # v4.11+
arch/mips/kernel/irq.c