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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:03:10 +0000 (14:03 -0700)
commit442d1144f91508471a82e77c01fca193d1e5bc0c
tree1bf715931c44a71d0e99f13f70e44aa5c23eb063
parent5838a070d1177dc02d7acb553bc02e6f018e024a
MIPS: irq: Allocate accurate order pages for irq stack

commit 72faa7a773ca59336f3c889e878de81445c5a85c upstream.

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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/kernel/irq.c