diff options
author | Alexander Motin <mav@FreeBSD.org> | 2022-06-01 18:50:27 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2022-07-04 17:48:10 +0000 |
commit | fad7a311d9ffa394470e427e6d928269640f602b (patch) | |
tree | c2053f51085778a97e7eb0afbb1119364cac1dd1 /sys/dev/hwpmc/hwpmc_powerpc.h | |
parent | 633cab8aa4a24c4187e9996efa1bb680bf531ace (diff) |
hwpmc: Make powerpc memory allocation alike to x86.
It should remove some unneeded pointer dereferences.
MFC after: 1 month
(cherry picked from commit 47699fc265b9d966b4eba6bc0c41739ac793f52b)
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_powerpc.h')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_powerpc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hwpmc/hwpmc_powerpc.h b/sys/dev/hwpmc/hwpmc_powerpc.h index 31c20592a21f..551f59b60528 100644 --- a/sys/dev/hwpmc/hwpmc_powerpc.h +++ b/sys/dev/hwpmc/hwpmc_powerpc.h @@ -58,8 +58,8 @@ #define PPC_OVERFLOWCNT_MAX 0x200000000UL struct powerpc_cpu { - struct pmc_hw *pc_ppcpmcs; - enum pmc_class pc_class; + enum pmc_class pc_class; + struct pmc_hw pc_ppcpmcs[]; }; struct pmc_ppc_event { |