Commit b214a8f2 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Michael Ellerman

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
Reviewed-by: default avatarGreg Kurz <groug@kaod.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/85d5d247ce753befd6aa63c473f7823de6520ccd.1564647619.git.christophe.jaillet@wanadoo.fr
parent 9616dda1
...@@ -45,7 +45,7 @@ static int xive_irq_bitmap_add(int base, int count) ...@@ -45,7 +45,7 @@ static int xive_irq_bitmap_add(int base, int count)
{ {
struct xive_irq_bitmap *xibm; struct xive_irq_bitmap *xibm;
xibm = kzalloc(sizeof(*xibm), GFP_ATOMIC); xibm = kzalloc(sizeof(*xibm), GFP_KERNEL);
if (!xibm) if (!xibm)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment