diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2019-08-01 10:32:31 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-08-15 22:52:55 +1000 |
commit | b214a8f2ea964b5ff2cc4a1e8bd8c74f64741f20 (patch) | |
tree | e022009d54d2488cff0bd7aa4317bc143906a2ab /arch/powerpc/sysdev | |
parent | 9616dda1aaddb2080122aaeab96ad7fc064e36b4 (diff) | |
download | linux-b214a8f2ea964b5ff2cc4a1e8bd8c74f64741f20.tar.gz linux-b214a8f2ea964b5ff2cc4a1e8bd8c74f64741f20.tar.bz2 linux-b214a8f2ea964b5ff2cc4a1e8bd8c74f64741f20.zip |
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
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/xive/spapr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xive/spapr.c b/arch/powerpc/sysdev/xive/spapr.c index 8ef9cf4ebb1c..b4f5eb9e0f82 100644 --- a/arch/powerpc/sysdev/xive/spapr.c +++ b/arch/powerpc/sysdev/xive/spapr.c @@ -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; |