]> Git Repo - linux.git/commitdiff
s390/cpum_sf: remove check on CPU being online
authorThomas Richter <[email protected]>
Fri, 23 Jun 2023 09:26:30 +0000 (11:26 +0200)
committerAlexander Gordeev <[email protected]>
Tue, 4 Jul 2023 05:45:18 +0000 (07:45 +0200)
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 <[email protected]>
Acked-by: Heiko Carstens <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
arch/s390/kernel/perf_cpum_sf.c

index 003b9a28c83461be638730656c4614bf017fff09..06efad5b4f931b5c0ada1baad1a474945d3b05da 100644 (file)
@@ -958,10 +958,6 @@ static int cpumsf_pmu_event_init(struct perf_event *event)
                return -ENOENT;
        }
 
-       /* Check online status of the CPU to which the event is pinned */
-       if (event->cpu >= 0 && !cpu_online(event->cpu))
-               return -ENODEV;
-
        /* Force reset of idle/hv excludes regardless of what the
         * user requested.
         */
This page took 0.058275 seconds and 4 git commands to generate.