Skip to content
Commit 927420a4 authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Anas Nashif
Browse files

tests: sched: Add busy threads for SMP



The sched benchmark is designed for systems with a single
CPU. Otherwise, the timestamps would be wrong when the partner
thread is scheduled on another CPU, i.e. negative values:

```
unpend   63 ready   62 switch -16562 pend 18937 tot 2500 (avg  928)
```

When the system allows for multiple CPUs, spawn a non-preemptible
thread to keep the other CPUs busy.

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent b77c50d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment