mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
sched/: Fix some spacing issues
This commit is contained in:
@@ -113,18 +113,19 @@ void weak_function timer_initialize(void)
|
||||
|
||||
/* Place all of the pre-allocated timers into the free timer list */
|
||||
|
||||
sq_init((sq_queue_t*)&g_freetimers);
|
||||
sq_init((FAR sq_queue_t *)&g_freetimers);
|
||||
|
||||
for (i = 0; i < CONFIG_PREALLOC_TIMERS; i++)
|
||||
{
|
||||
g_prealloctimers[i].pt_flags = PT_FLAGS_PREALLOCATED;
|
||||
sq_addlast((FAR sq_entry_t*)&g_prealloctimers[i], (FAR sq_queue_t*)&g_freetimers);
|
||||
sq_addlast((FAR sq_entry_t *)&g_prealloctimers[i],
|
||||
(FAR sq_queue_t *)&g_freetimers);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize the list of allocated timers */
|
||||
|
||||
sq_init((sq_queue_t*)&g_alloctimers);
|
||||
sq_init((FAR sq_queue_t *)&g_alloctimers);
|
||||
}
|
||||
|
||||
/********************************************************************************
|
||||
@@ -155,7 +156,7 @@ void weak_function timer_deleteall(pid_t pid)
|
||||
irqstate_t flags;
|
||||
|
||||
flags = irqsave();
|
||||
for (timer = (FAR struct posix_timer_s*)g_alloctimers.head; timer; timer = next)
|
||||
for (timer = (FAR struct posix_timer_s *)g_alloctimers.head; timer; timer = next)
|
||||
{
|
||||
next = timer->flink;
|
||||
if (timer->pt_owner == pid)
|
||||
|
||||
Reference in New Issue
Block a user