From 050658422964e38b7c05fe0502ecc63c44d8dbda Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 12 Feb 2025 21:34:14 +0000 Subject: [PATCH] stress-cpu: add LIKELY/UNLIKELY hints for stress_continue_flag Signed-off-by: Colin Ian King --- stress-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stress-cpu.c b/stress-cpu.c index 82f855e14..48ca364d5 100644 --- a/stress-cpu.c +++ b/stress-cpu.c @@ -758,7 +758,7 @@ PRAGMA_UNROLL_N(8) return EXIT_FAILURE; } } - if (!stress_continue_flag()) + if (UNLIKELY(!stress_continue_flag())) return EXIT_SUCCESS; } }