]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
s390/cpum_sf: Remove unnecessary check for pending SDBs
authorThomas Richter <tmricht@linux.ibm.com>
Fri, 22 Nov 2019 12:42:55 +0000 (13:42 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 30 Nov 2019 09:52:46 +0000 (10:52 +0100)
In interrupt handling the function extend_sampling_buffer()
is called after checking for a possibly extension.
This check is not necessary as the called function itself
performs this check again.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/perf_cpum_sf.c

index 4414094550a4a08f938b0f3df92ae13e68198836..dc0ac098a465cd5bb4f306290f0401f1368eb811 100644 (file)
@@ -952,8 +952,7 @@ static void cpumsf_pmu_enable(struct pmu *pmu)
                         * buffer extents
                         */
                        sfb_account_overflows(cpuhw, hwc);
-                       if (sfb_has_pending_allocs(&cpuhw->sfb, hwc))
-                               extend_sampling_buffer(&cpuhw->sfb, hwc);
+                       extend_sampling_buffer(&cpuhw->sfb, hwc);
                }
                /* Rate may be adjusted with ioctl() */
                cpuhw->lsctl.interval = SAMPL_RATE(&cpuhw->event->hw);