You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/10/31 09:31:03 UTC
[incubator-nuttx] 01/02: Fix error: 'struct tcb_s' has no member
named 'low_priority'
This is an automated email from the ASF dual-hosted git repository.
gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 86fc19ff3f92c2bf5d232d50e6801c9a132293d1
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sat Oct 30 21:40:12 2021 +0800
Fix error: 'struct tcb_s' has no member named 'low_priority'
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
sched/sched/sched_sporadic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sched/sched/sched_sporadic.c b/sched/sched/sched_sporadic.c
index 190412d..b6c1792 100644
--- a/sched/sched/sched_sporadic.c
+++ b/sched/sched/sched_sporadic.c
@@ -136,7 +136,7 @@ static int sporadic_set_lowpriority(FAR struct tcb_s *tcb)
* state.
*/
- tcb->base_priority = tcb->low_priority;
+ tcb->base_priority = sporadic->low_priority;
}
else
#endif