summaryrefslogtreecommitdiffstats
path: root/drivers/perf/Makefile
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2017-04-11 10:39:54 +0200
committerWill Deacon <will.deacon@arm.com>2017-04-11 17:29:54 +0200
commite0013aed489e7ebbba59d7ada2ff5551ac4b61c6 (patch)
tree5e1911682a9eb3304fbc85c77a0a4bdf25338e50 /drivers/perf/Makefile
parentdrivers/perf: arm_pmu: split out platform device probe logic (diff)
downloadlinux-e0013aed489e7ebbba59d7ada2ff5551ac4b61c6.tar.xz
linux-e0013aed489e7ebbba59d7ada2ff5551ac4b61c6.zip
arm64: add function to get a cpu's MADT GICC table
Currently the ACPI parking protocol code needs to parse each CPU's MADT GICC table to extract the mailbox address and so on. Each time we parse a GICC table, we call back to the parking protocol code to parse it. This has been fine so far, but we're about to have more code that needs to extract data from the GICC tables, and adding a callback for each user is going to get unwieldy. Instead, this patch ensures that we stash a copy of each CPU's GICC table at boot time, such that anything needing to parse it can later request it. This will allow for other parsers of GICC, and for simplification to the ACPI parking protocol code. Note that we must store a copy, rather than a pointer, since the core ACPI code temporarily maps/unmaps tables while iterating over them. Since we parse the MADT before we know how many CPUs we have (and hence before we setup the percpu areas), we must use an NR_CPUS sized array. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Tested-by: Jeremy Linton <jeremy.linton@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/perf/Makefile')
0 files changed, 0 insertions, 0 deletions