]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit0e2012a623d13cb8db8bb0518ebf31278e16ebbb
treed75378e3c7c80e8bcaa7e29763642c88af401cc6
parent7b0ec05c7ac5f830d10650d473f6e312b465d0bf
MIPS: irq: Allocate accurate order pages for irq stack

BugLink: https://bugs.launchpad.net/bugs/1837813
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/mips/kernel/irq.c