]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: perf: Simplify the ARMv8 PMUv3 event attributes
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Wed, 30 Oct 2019 03:46:17 +0000 (11:46 +0800)
committerWill Deacon <will@kernel.org>
Fri, 1 Nov 2019 14:51:19 +0000 (14:51 +0000)
commitd296c5e3f68b1ba1a0b9961933a530124d94b469
tree567613db24705bc731e9f757bcf0e07448a16d20
parent66a7d81b7b3304d92de9d5ab8a46abdf80a8baaa
arm64: perf: Simplify the ARMv8 PMUv3 event attributes

For each PMU event, there is a ARMV8_EVENT_ATTR(xx, XX) and
&armv8_event_attr_xx.attr.attr. Let's redefine the ARMV8_EVENT_ATTR
to simplify the armv8_pmuv3_event_attrs.

Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
[will: Dropped unnecessary array syntax]
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/perf_event.c