diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 21:44:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-13 21:44:24 +0000 |
commit | 7cbeae30b426e0912d1814c76e6223fb0842a9fc (patch) | |
tree | a18e5e084078df356178ec94987ed828ec669f22 /nuttx/sched/clock_settime.c | |
parent | ea4461bfe4f667a624055c6a061aaef49e33cace (diff) | |
download | px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.tar.gz px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.tar.bz2 px4-nuttx-7cbeae30b426e0912d1814c76e6223fb0842a9fc.zip |
Macro clock_systimer replaces direct access to g_system_timer variable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3500 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/clock_settime.c')
-rw-r--r-- | nuttx/sched/clock_settime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/clock_settime.c b/nuttx/sched/clock_settime.c index da0d8f1ac..2af27acf1 100644 --- a/nuttx/sched/clock_settime.c +++ b/nuttx/sched/clock_settime.c @@ -1,7 +1,7 @@ /************************************************************************ * sched/clock_settime.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -109,7 +109,7 @@ int clock_settime(clockid_t clock_id, const struct timespec *tp) * as appropriate. */ - g_tickbias = g_system_timer; + g_tickbias = clock_systimer(); sdbg("basetime=(%d,%d) tickbias=%d\n", (int)g_basetime.tv_sec, (int)g_basetime.tv_nsec, |