powerpc/xive: introduce a common routine xive_queue_page_alloc()
authorCédric Le Goater <clg@kaod.org>
Wed, 30 Aug 2017 19:46:10 +0000 (21:46 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 2 Sep 2017 11:02:34 +0000 (21:02 +1000)
commit994ea2f41999113d84c317da3ec1e10aa6469b3f
tree0564f84d38bc0d59ca14ddc02bb6c22c04bc9a43
parent3b79b26101936bbdb7a5c69161c69d65a1108fb0
powerpc/xive: introduce a common routine xive_queue_page_alloc()

This routine will be used in the spapr backend. Also introduce a short
xive_alloc_order() helper.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xive/common.c
arch/powerpc/sysdev/xive/native.c
arch/powerpc/sysdev/xive/xive-internal.h