Skip to content

Commit b214a8f

Browse files
tititiou36mpe
authored andcommitted
powerpc/xive: Use GFP_KERNEL instead of GFP_ATOMIC in 'xive_irq_bitmap_add()'
There is no need to use GFP_ATOMIC here. GFP_KERNEL should be enough. GFP_KERNEL is also already used for another allocation just a few lines below. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/85d5d247ce753befd6aa63c473f7823de6520ccd.1564647619.git.christophe.jaillet@wanadoo.fr
1 parent 9616dda commit b214a8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/sysdev/xive/spapr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static int xive_irq_bitmap_add(int base, int count)
4545
{
4646
struct xive_irq_bitmap *xibm;
4747

48-
xibm = kzalloc(sizeof(*xibm), GFP_ATOMIC);
48+
xibm = kzalloc(sizeof(*xibm), GFP_KERNEL);
4949
if (!xibm)
5050
return -ENOMEM;
5151

0 commit comments

Comments
 (0)