From aaafcfd6886c2fce7919a0c58e70bcfbb9b55db7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 6 Aug 2014 18:29:05 -0600 Subject: [PATCH] if CONFIG_SCHED_TICKLESS is defined, then the global variable g_system_timer does not exist. --- sched/clock_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sched/clock_internal.h b/sched/clock_internal.h index aba9723b633..db857743e2a 100644 --- a/sched/clock_internal.h +++ b/sched/clock_internal.h @@ -1,7 +1,7 @@ /******************************************************************************** * sched/clock_internal.h * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -80,7 +80,9 @@ extern struct timespec g_basetime; ********************************************************************************/ void weak_function clock_initialize(void); +#ifndef CONFIG_SCHED_TICKLESS void weak_function clock_timer(void); +#endif int clock_abstime2ticks(clockid_t clockid, FAR const struct timespec *abstime,