-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[DM/PIC] Fixup SMP CPU mask list when CPU < 4 #10998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1198,7 +1198,7 @@ static int list_irq(int argc, char**argv) | |
| _pic_name_max, "PIC", | ||
| 12, "Mode", | ||
| #ifdef RT_USING_SMP | ||
| RT_CPUS_NR, "CPUs", | ||
| rt_max(RT_CPUS_NR, 4), "CPUs", | ||
| #else | ||
| 0, 0, | ||
| #endif | ||
|
|
@@ -1254,6 +1254,10 @@ static int list_irq(int argc, char**argv) | |
|
|
||
| rt_kputs(info); | ||
| #ifdef RT_USING_SMP | ||
| if (RT_CPUS_NR < 4) | ||
| { | ||
| rt_memset(&cpumask[RT_CPUS_NR], ' ', 4 - RT_CPUS_NR); | ||
| } | ||
|
Comment on lines
+1257
to
+1260
|
||
| rt_kputs(cpumask); | ||
| #endif | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Title Format / PR 标题格式
English: PR title should follow lowercase format
[module][subsystem]according to RT-Thread guidelines. Current title uses uppercase[DM/PIC], but should be[drivers][pic]or[pic]in lowercase.中文:根据 RT-Thread 指南,PR 标题应遵循小写格式
[模块][子系统]。当前标题使用大写[DM/PIC],应改为小写的[drivers][pic]或[pic]。Suggested title / 建议标题:
or