]> git.baikalelectronics.ru Git - kernel.git/commit
arm_pmu: add armpmu_alloc_atomic()
authorMark Rutland <mark.rutland@arm.com>
Mon, 5 Feb 2018 16:41:58 +0000 (16:41 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Feb 2018 11:34:54 +0000 (11:34 +0000)
commit2e4b7bcee859fbcbf4b42dbac16816a01afc003b
treef32aed65915b0416167c0ec6e867ce0a25fc2307
parent9a19cf684687ab0a6f8de81542776add4c345b44
arm_pmu: add armpmu_alloc_atomic()

In ACPI systems, we don't know the makeup of CPUs until we hotplug them
on, and thus have to allocate the PMU datastructures at hotplug time.
Thus, we must use GFP_ATOMIC allocations.

Let's add an armpmu_alloc_atomic() that we can use in this case.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c
drivers/perf/arm_pmu_acpi.c
include/linux/perf/arm_pmu.h