Skip to content
Commit 3f011259 authored by Mohamed Moawad's avatar Mohamed Moawad Committed by Benjamin Cabé
Browse files

tests: kernel: fix thread_runtime_stats compiler optimization issue



Compilers may optimize away empty while(1){} loops in helper threads,
causing the idle thread to run instead and breaking runtime statistics
measurement.

Use volatile condition variable to prevent optimization.

Signed-off-by: default avatarMohamed Moawad <moawad@synopsys.com>
parent 240d99f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment