Skip to content

Commit 799f526

Browse files
committed
skip ptr chase calibration is it's unused
1 parent 8e49a52 commit 799f526

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/osc-covert.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,13 @@ EVSet *prepare_evsets() {
115115
return NULL;
116116
}
117117

118-
ptr_threshold = calibrate_chase_probe_lat(target, sf_evset, array_repeat,
119-
l2_repeat, .2);
120-
if (ptr_threshold <= 0) {
121-
_error("Failed to calibrate ptr access lat!\n");
122-
return NULL;
118+
if (ptr_chase) {
119+
ptr_threshold = calibrate_chase_probe_lat(target, sf_evset, array_repeat,
120+
l2_repeat, .2);
121+
if (ptr_threshold <= 0) {
122+
_error("Failed to calibrate ptr access lat!\n");
123+
return NULL;
124+
}
123125
}
124126

125127
if (measure_performance(sf_evset)) {

0 commit comments

Comments
 (0)