Skip to content

[pull] master from RT-Thread:master#704

Merged
pull[bot] merged 3 commits into
meng-plus:masterfrom
RT-Thread:master
Nov 19, 2025
Merged

[pull] master from RT-Thread:master#704
pull[bot] merged 3 commits into
meng-plus:masterfrom
RT-Thread:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Nov 19, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Copilot AI and others added 3 commits November 19, 2025 14:10
Currently, this utest cannot determine whether threads are evenly distributed
across idle harts by observing the result of list_thread(). This is because
the presence of rt_thread_delay(5); causes all other threads to be in the
suspended state when thread information is printed. For example, if RT_CPUS_NR=4,
T0 executes list_thread() to print information, while T1~T3 are in hibernation
and thus it is impossible to observe which hart they are running on.

Solution:Here, the completion judgment condition has been modified. For example,
when RT_CPUS_NR=4, only RT_CPUS_NR-1 threads will be created (i.e., T0 to T2),
because running the utest occupies one hart. The execution is judged as completed
when finish_flag=0x0007, and the thread running the utest will call list_thread()
to print the information. Observe whether T0 to T2 are running on different
harts simultaneously.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
…tion for idle harts

Add explanatory comments for the utest of smp_assigned_idle_cores.

Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
@pull pull Bot locked and limited conversation to collaborators Nov 19, 2025
@pull pull Bot added the ⤵️ pull label Nov 19, 2025
@pull pull Bot merged commit 573c548 into meng-plus:master Nov 19, 2025
@pull pull Bot added the ⤵️ pull label Nov 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants