perf: arm_spe: Drop BIT() and use FIELD_GET/PREP accessors
authorRob Herring <robh@kernel.org>
Mon, 9 Jan 2023 19:26:20 +0000 (13:26 -0600)
committerWill Deacon <will@kernel.org>
Thu, 19 Jan 2023 18:30:22 +0000 (18:30 +0000)
commit2d347ac23362f6cfc5e04a4b998f51e1e7e909a8
tree167057933f38cb994a201485699fe75530419dcf
parent956936041a56eaebc012cf62a00fafd86958ffd5
perf: arm_spe: Drop BIT() and use FIELD_GET/PREP accessors

Now that generated sysregs are in place, update the register field
accesses. The use of BIT() is no longer needed with the new defines. Use
FIELD_GET and FIELD_PREP instead of open coding masking and shifting.

No functional change.

Tested-by: James Clark <james.clark@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20220825-arm-spe-v8-7-v4-4-327f860daf28@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_spe_pmu.c