Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149297159
D50426.1789834468.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
743 B
Referenced Files
None
Subscribers
None
D50426.1789834468.diff
View Options
diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c
--- a/sys/dev/hwpmc/hwpmc_arm64.c
+++ b/sys/dev/hwpmc/hwpmc_arm64.c
@@ -521,13 +521,13 @@
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 4:14 PM (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29782941
Default Alt Text
D50426.1789834468.diff (743 B)
Attached To
Mode
D50426: hwpmc/arm64: Make the pmcr variable descriptive
Attached
Detach File
Event Timeline
Log In to Comment