diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2025-05-27 19:54:44 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2025-05-27 19:54:44 +0000 |
| commit | 8535ee0631182729e431846d3d80caab1293806b (patch) | |
| tree | 2c3f826bec991a9b5e862411be21566f1a0649d6 | |
| parent | 77d5df3b9261173f10afb7ba739f98c62a41395f (diff) | |
hwpmc/arm64: Make the pmcr variable descriptive
Rename the generic reg to pmcr to make it easier to find places we
access the register.
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D50426
| -rw-r--r-- | sys/dev/hwpmc/hwpmc_arm64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c index 5d221c738c2f..28745b4a3028 100644 --- a/sys/dev/hwpmc/hwpmc_arm64.c +++ b/sys/dev/hwpmc/hwpmc_arm64.c @@ -521,13 +521,13 @@ pmc_arm64_initialize(void) struct pmc_mdep *pmc_mdep; struct pmc_classdep *pcd; int classes, idcode, impcode; - int reg; + int pmcr; uint64_t midr; - reg = arm64_pmcr_read(); - arm64_npmcs = (reg & PMCR_N_MASK) >> PMCR_N_SHIFT; - impcode = (reg & PMCR_IMP_MASK) >> PMCR_IMP_SHIFT; - idcode = (reg & PMCR_IDCODE_MASK) >> PMCR_IDCODE_SHIFT; + pmcr = arm64_pmcr_read(); + arm64_npmcs = (pmcr & PMCR_N_MASK) >> PMCR_N_SHIFT; + impcode = (pmcr & PMCR_IMP_MASK) >> PMCR_IMP_SHIFT; + idcode = (pmcr & PMCR_IDCODE_MASK) >> PMCR_IDCODE_SHIFT; PMCDBG1(MDP, INI, 1, "arm64-init npmcs=%d", arm64_npmcs); |
