Skip to content

Commit 72f7493

Browse files
committed
tests: boards: intel_adsp/smoke: threshold for CPU timing test
The 4th CPU test tries to gauge tight loop performance. However, it has been observed occasionally that the calculated would go over just a bit. The threshold was 3, and the observed ratio has been bouncing between 2.9 and 3.1. So up the threshold a little bit to account for that. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent f2b7909 commit 72f7493

File tree

1 file changed

+1
-1
lines changed
  • tests/boards/intel_adsp/smoke/src

1 file changed

+1
-1
lines changed

tests/boards/intel_adsp/smoke/src/cpus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static void core_smoke(void *arg)
135135
cyc1 = ccount();
136136
dt = cyc1 - cyc0;
137137
insns = count0 * 2;
138-
zassert_true((dt / insns) < 3,
138+
zassert_true((dt / insns) < 3.5,
139139
"instruction rate too slow, icache disabled?");
140140
printk(" CPI = %d.%2.2d\n", dt / insns, ((1000 * dt) / insns) % 1000);
141141
}

0 commit comments

Comments
 (0)