]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf/arm-ni: Fix and optimise register offset calculation
authorRobin Murphy <robin.murphy@arm.com>
Tue, 4 Nov 2025 18:29:40 +0000 (18:29 +0000)
committerWill Deacon <will@kernel.org>
Fri, 7 Nov 2025 13:42:46 +0000 (13:42 +0000)
commit2d7a824807015209de4dd58c7ac240c5a276753e
tree68beb29b74d89c3866bf2369df13532c4111bf5e
parent989b40b7578a2be7b0388522d33d751b257d59d9
perf/arm-ni: Fix and optimise register offset calculation

LKP points out an operator precedence oversight in the new NoC S3
support that, annoyingly, my local W=1 build didn't flag. In fixing
that, we can also take the similarly-missed opportunity to cache the
version check itself at event_init time.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511041749.ok8zDP6u-lkp@intel.com/
Fixes: 8fa08f8835e5 ("perf/arm-ni: Add NoC S3 support")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-ni.c