mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
tools/nxstyle.c: Add logic to detect if there is a blank line following the final right brace. sched/: Applied the modified nxstyle to all C file as a test.
This commit is contained in:
@@ -178,6 +178,7 @@ static void clock_inittime(void)
|
||||
#ifndef CONFIG_RTC_HIRES
|
||||
clock_basetime(&g_basetime);
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_SCHED_TICKLESS
|
||||
g_system_timer = INITIAL_SYSTEM_TIMER_TICKS;
|
||||
if (g_system_timer > 0)
|
||||
@@ -197,6 +198,7 @@ static void clock_inittime(void)
|
||||
}
|
||||
}
|
||||
#endif /* !CONFIG_SCHED_TICKLESS */
|
||||
|
||||
#else
|
||||
clock_inittimekeeping();
|
||||
#endif
|
||||
|
||||
@@ -122,6 +122,7 @@ int clock_settime(clockid_t clock_id, FAR const struct timespec *tp)
|
||||
up_rtc_settime(tp);
|
||||
}
|
||||
#endif
|
||||
|
||||
leave_critical_section(flags);
|
||||
|
||||
sinfo("basetime=(%ld,%lu) bias=(%ld,%lu)\n",
|
||||
|
||||
Reference in New Issue
Block a user