jlaitine commented on code in PR #16673:
URL: https://github.com/apache/nuttx/pull/16673#discussion_r2246864924


##########
sched/sched/sched.h:
##########
@@ -132,6 +134,17 @@ struct tasklist_s
   uint8_t attr;          /* List attribute flags */
 };
 
+/* This enumeration defines smp schedule task switch rule */
+
+enum task_deliver_e
+{
+  NOT_ASSIGNED  = 0, /* No schedule switch pending */
+  SWITCH_HIGHER = 1, /* Higher priority task needs to be scheduled in */
+  SWITCH_EQUAL       /* Higher or equal priority task needs to be scheduled

Review Comment:
   In priority update and roundrobin, you need to switch out when the priority 
is greater or equal than the rtcb's. In all other cases only if it is greater.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to