Skip to content
Snippets Groups Projects
Commit 1d88dc1f authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix some compilation error when both TICKLESS mode and the SPORADIC scheduler are enabled

parent ed031388
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@
#define KEEP_ALIVE_HACK 1
#ifdef CONFIG_RR_INTERVAL > 0
#if CONFIG_RR_INTERVAL > 0
# define KEEP_ALIVE_TICKS MSEC2TICK(CONFIG_RR_INTERVAL)
#else
# define KEEP_ALIVE_TICKS MSEC2TICK(50)
......@@ -284,7 +284,7 @@ static inline uint32_t sched_process_scheduler(uint32_t ticks, bool noswitches)
if (rtcb != ntcb)
{
return sched_process_scheduler(0, true)
return sched_process_scheduler(0, true);
}
/* Returning zero means that there is no interesting event to be timed */
......@@ -294,9 +294,9 @@ static inline uint32_t sched_process_scheduler(uint32_t ticks, bool noswitches)
{
/* Apply the keep alive hack */
return KEEP_ALIVE_TICKS
return KEEP_ALIVE_TICKS;
}
#else
#endif
return ret;
}
......
......@@ -156,7 +156,7 @@ int sched_unlock(void)
* change the currently active task.
*/
if (rtcb = (FAR struct tcb_s*)g_readytorun.head)
if (rtcb == (FAR struct tcb_s*)g_readytorun.head)
{
sched_timer_reassess();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment