Re: [v3 01/15] powerpc/perf: Update cpu_hw_event to use `struct` for storing MMCR registers

2020-07-21 Thread Athira Rajeev
> On 21-Jul-2020, at 9:12 AM, Jordan Niethe wrote: > > On Sat, Jul 18, 2020 at 12:48 AM Athira Rajeev > mailto:atraj...@linux.vnet.ibm.com>> wrote: >> >> core-book3s currently uses array to store the MMCR registers as part >> of per-cpu `cpu_hw_events`. This patch does a clean up to use

Re: [v3 01/15] powerpc/perf: Update cpu_hw_event to use `struct` for storing MMCR registers

2020-07-20 Thread Jordan Niethe
On Sat, Jul 18, 2020 at 12:48 AM Athira Rajeev wrote: > > core-book3s currently uses array to store the MMCR registers as part > of per-cpu `cpu_hw_events`. This patch does a clean up to use `struct` > to store mmcr regs instead of array. This will make code easier to read > and reduces chance of

[v3 01/15] powerpc/perf: Update cpu_hw_event to use `struct` for storing MMCR registers

2020-07-17 Thread Athira Rajeev
core-book3s currently uses array to store the MMCR registers as part of per-cpu `cpu_hw_events`. This patch does a clean up to use `struct` to store mmcr regs instead of array. This will make code easier to read and reduces chance of any subtle bug that may come in the future, say when new