Skip to content

Commit

Permalink
stress-cpu: add LIKELY/UNLIKELY hints for stress_continue_flag
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Feb 12, 2025
1 parent 143cf2f commit 0506584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stress-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ PRAGMA_UNROLL_N(8)
return EXIT_FAILURE;
}
}
if (!stress_continue_flag())
if (UNLIKELY(!stress_continue_flag()))
return EXIT_SUCCESS;
}
}
Expand Down

0 comments on commit 0506584

Please sign in to comment.