From 7cbeae30b426e0912d1814c76e6223fb0842a9fc Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 13 Apr 2011 21:44:24 +0000 Subject: 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 --- nuttx/sched/work_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/sched/work_thread.c') diff --git a/nuttx/sched/work_thread.c b/nuttx/sched/work_thread.c index 49542b532..a0e0d78e9 100755 --- a/nuttx/sched/work_thread.c +++ b/nuttx/sched/work_thread.c @@ -152,7 +152,7 @@ int work_thread(int argc, char *argv[]) * zero. Therefore a delay of zero will always execute immediately. */ - elapsed = g_system_timer - work->qtime; + elapsed = clock_systimer() - work->qtime; if (elapsed >= work->delay) { /* Remove the ready-to-execute work from the list */ -- cgit v1.2.3