From 335b2e952ecffccd58d5b61d6081306152c64ddd Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Thu, 13 Feb 2025 10:33:24 +0000 Subject: [PATCH] stress-yield: add LIKELY/UNLIKELY hints for stress_continue_flag Signed-off-by: Colin Ian King --- stress-yield.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stress-yield.c b/stress-yield.c index 30570e181..5113e568c 100644 --- a/stress-yield.c +++ b/stress-yield.c @@ -272,7 +272,7 @@ static int stress_yield(stress_args_t *args) stress_sync_start_wait(args); stress_set_proc_state(args->name, STRESS_STATE_RUN); - for (i = 0; stress_continue_flag() && (i < yielders); i++) { + for (i = 0; LIKELY(stress_continue_flag() && (i < yielders)); i++) { pids[i] = fork(); if (pids[i] < 0) { pr_dbg("%s: fork failed (instance %" PRIu32