]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests/powerpc: Run per_event_excludes test on Power8 or later
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 12:21:42 +0000 (22:21 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Jul 2020 14:01:23 +0000 (00:01 +1000)
commit9d1ebe9a98c1d7bf7cfbe1dba0052230c042ecdb
tree31848682b2d3fa358f43d7116085ab29b4cc58ad
parent482b9b3948675df60c015b2155011c1f93234992
selftests/powerpc: Run per_event_excludes test on Power8 or later

The per_event_excludes test wants to run on Power8 or later. But
currently it checks that AT_BASE_PLATFORM *equals* power8, which means
it only runs on Power8.

Fix it to check for the ISA 2.07 feature, which will be set on Power8
and later CPUs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200716122142.3776261-1-mpe@ellerman.id.au
tools/testing/selftests/powerpc/pmu/per_event_excludes.c