drm/i915/pmu: Make PMU sample array two-dimensional
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 24 May 2023 21:56:29 +0000 (14:56 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 31 May 2023 20:23:19 +0000 (13:23 -0700)
commit8ed0753b527dc00e759ec1e9e46c0ce9240c0f49
treed9b9e2ce129a33e17fe3ef5a4e48a4d73b1dd38c
parentab12902528f414cbb68d0da2b0d518b0ef10e696
drm/i915/pmu: Make PMU sample array two-dimensional

No functional changes but we can remove some unsightly index computation
and read/write functions if we convert the PMU sample array from a
one-dimensional to a two-dimensional array.

v2: Retain read/store helpers (Tvrtko)

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230524215629.97920-3-ashutosh.dixit@intel.com
drivers/gpu/drm/i915/i915_pmu.c
drivers/gpu/drm/i915/i915_pmu.h