[PATCH 2/5] arm_pmu: have armpmu_alloc() take GFP flags
Mark Rutland
mark.rutland at arm.com
Mon Dec 11 10:02:01 PST 2017
On Mon, Dec 11, 2017 at 05:37:02PM +0000, Will Deacon wrote:
> On Wed, Nov 01, 2017 at 02:12:36PM +0000, Mark Rutland wrote:
> > diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/arm_pmu_acpi.c
> > index 705f1a390e31..a52f5b673a15 100644
> > --- a/drivers/perf/arm_pmu_acpi.c
> > +++ b/drivers/perf/arm_pmu_acpi.c
> > @@ -127,7 +127,7 @@ static struct arm_pmu *arm_pmu_acpi_find_alloc_pmu(void)
> > return pmu;
> > }
> >
> > - pmu = armpmu_alloc();
> > + pmu = armpmu_alloc(GFP_ATOMIC);
>
> I think I'd rather have armpmu_alloc_atomic as a wrapper around
> __armpmu_alloc(GFP_ATOMIC) and then leave the armpmu_alloc to pass
> GFP_KERNEL.
Sure; done.
Mark.
More information about the linux-arm-kernel
mailing list