summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_processtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_processtimer.c')
-rw-r--r--nuttx/sched/sched_processtimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/sched/sched_processtimer.c b/nuttx/sched/sched_processtimer.c
index eff439a5b..c6ee8fdb8 100644
--- a/nuttx/sched/sched_processtimer.c
+++ b/nuttx/sched/sched_processtimer.c
@@ -162,12 +162,14 @@ void sched_process_timer(void)
{
/* Increment the system time (if in the link) */
+#ifndef CONFIG_DISABLE_CLOCK
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
if (clock_timer != NULL)
#endif
{
clock_timer();
}
+#endif
/* Process watchdogs (if in the link) */