Skip to content

Commit 6aca56c

Browse files
Thomas RichterAlexander Gordeev
authored andcommitted
s390/cpum_sf: remove check on CPU being online
During sampling event initialization, a check is done if that particular CPU the event is to be installed on is actually online. This check is not necessary, as it is also performed in the system call entry point. Therefore remove this check. No functional change. Signed-off-by: Thomas Richter <tmricht@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
1 parent b2534c2 commit 6aca56c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

arch/s390/kernel/perf_cpum_sf.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -958,10 +958,6 @@ static int cpumsf_pmu_event_init(struct perf_event *event)
958958
return -ENOENT;
959959
}
960960

961-
/* Check online status of the CPU to which the event is pinned */
962-
if (event->cpu >= 0 && !cpu_online(event->cpu))
963-
return -ENODEV;
964-
965961
/* Force reset of idle/hv excludes regardless of what the
966962
* user requested.
967963
*/

0 commit comments

Comments
 (0)