aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2019-11-22 13:42:55 +0100
committerVasily Gorbik <gor@linux.ibm.com>2019-11-30 10:52:46 +0100
commitc17a7c6ee8177e0da998784c06f37fc093507c5b (patch)
tree4c29e4285ccb2afdb3c38551c02ac32e9d9b8786 /arch
parents390/cpum_sf: Replace function name in debug statements (diff)
downloadlinux-dev-c17a7c6ee8177e0da998784c06f37fc093507c5b.tar.xz
linux-dev-c17a7c6ee8177e0da998784c06f37fc093507c5b.zip
s390/cpum_sf: Remove unnecessary check for pending SDBs
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/kernel/perf_cpum_sf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kernel/perf_cpum_sf.c b/arch/s390/kernel/perf_cpum_sf.c
index 4414094550a4..dc0ac098a465 100644
--- a/arch/s390/kernel/perf_cpum_sf.c
+++ b/arch/s390/kernel/perf_cpum_sf.c
@@ -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);