You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/01 15:42:17 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6746: sched: Remove KEEP_ALIVE_HACK hack

xiaoxiang781216 commented on code in PR #6746:
URL: https://github.com/apache/incubator-nuttx/pull/6746#discussion_r934670822


##########
sched/sched/sched_timerexpiration.c:
##########
@@ -233,15 +212,6 @@ static uint32_t nxsched_cpu_scheduler(int cpu, uint32_t ticks,
 
   /* Returning zero means that there is no interesting event to be timed */
 
-#ifdef KEEP_ALIVE_HACK
-  if (ret == 0)
-    {
-      /* Apply the keep alive hack */
-
-      return KEEP_ALIVE_TICKS;

Review Comment:
   Why not? the sporadic share the same code path as round-robin.



-- 
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-unsubscribe@nuttx.apache.org

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