mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 14:14:56 +00:00
hwpmc/arm64: fix the type for pm_arm64_evsel
It holds a 64-bit register, use a uint64_t. Reviewed by: mhorne Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45526
This commit is contained in:
parent
bbecd3148a
commit
915161b3d3
|
@ -163,7 +163,7 @@ static int
|
|||
arm64_allocate_pmc(int cpu, int ri, struct pmc *pm,
|
||||
const struct pmc_op_pmcallocate *a)
|
||||
{
|
||||
uint32_t config;
|
||||
uint64_t config;
|
||||
enum pmc_event pe;
|
||||
|
||||
KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
|
||||
|
@ -201,7 +201,8 @@ arm64_allocate_pmc(int cpu, int ri, struct pmc *pm,
|
|||
}
|
||||
|
||||
pm->pm_md.pm_arm64.pm_arm64_evsel = config;
|
||||
PMCDBG2(MDP, ALL, 2, "arm64-allocate ri=%d -> config=0x%x", ri, config);
|
||||
PMCDBG2(MDP, ALL, 2, "arm64-allocate ri=%d -> config=0x%lx", ri,
|
||||
config);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -299,7 +300,7 @@ arm64_config_pmc(int cpu, int ri, struct pmc *pm)
|
|||
static int
|
||||
arm64_start_pmc(int cpu, int ri, struct pmc *pm)
|
||||
{
|
||||
uint32_t config;
|
||||
uint64_t config;
|
||||
|
||||
config = pm->pm_md.pm_arm64.pm_arm64_evsel;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
#ifdef _KERNEL
|
||||
/* MD extension for 'struct pmc' */
|
||||
struct pmc_md_arm64_pmc {
|
||||
uint32_t pm_arm64_evsel;
|
||||
uint64_t pm_arm64_evsel;
|
||||
};
|
||||
#endif /* _KERNEL */
|
||||
#endif /* _DEV_HWPMC_ARMV8_H_ */
|
||||
|
|
Loading…
Reference in a new issue