This is an automated email from the ASF dual-hosted git repository. casaroli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 23414b18232dc82fcebc1a2289832e1381514316 Author: ouyangxiangzhen <[email protected]> AuthorDate: Mon Nov 2 16:34:51 2026 +0800 sched/paging: fix nxstyle. Fix missing blank line after declarations. Assisted-By: mimo-v2.6-pro Signed-off-by: ouyangxiangzhen <[email protected]> --- sched/paging/pg_worker.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sched/paging/pg_worker.c b/sched/paging/pg_worker.c index 5be47397096..589faa7a331 100644 --- a/sched/paging/pg_worker.c +++ b/sched/paging/pg_worker.c @@ -148,6 +148,7 @@ static void pg_callback(FAR struct tcb_s *tcb, int result) */ int priority = g_pftcb->sched_priority; + if (htcb && priority < htcb->sched_priority) { priority = htcb->sched_priority; @@ -266,6 +267,7 @@ static inline bool pg_dequeue(void) */ int priority = g_pftcb->sched_priority; + if (priority < CONFIG_PAGING_DEFPRIO) { priority = CONFIG_PAGING_DEFPRIO; @@ -447,6 +449,7 @@ static inline bool pg_startfill(void) static inline void pg_alldone(void) { FAR struct tcb_s *wtcb = this_task(); + g_pftcb = NULL; pginfo("New worker priority. %d->%d\n", wtcb->sched_priority, CONFIG_PAGING_DEFPRIO);
