]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/xive: Use GFP_KERNEL instead of GFP_ATOMIC in 'xive_irq_bitmap_add()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 1 Aug 2019 08:32:31 +0000 (10:32 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Aug 2019 12:52:55 +0000 (22:52 +1000)
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
arch/powerpc/sysdev/xive/spapr.c

index 8ef9cf4ebb1c60206ac9f97271012c78fbf12849..b4f5eb9e0f82490ff0301bb0c4db17aa08af36a4 100644 (file)
@@ -45,7 +45,7 @@ static int xive_irq_bitmap_add(int base, int count)
 {
        struct xive_irq_bitmap *xibm;
 
-       xibm = kzalloc(sizeof(*xibm), GFP_ATOMIC);
+       xibm = kzalloc(sizeof(*xibm), GFP_KERNEL);
        if (!xibm)
                return -ENOMEM;