syscall: clock_systimer() is no longer a system call. It has been replaced with the equivalent, standard interface clock() as the system call.

sched/clock:  Move the implementation of clock() from libs/libc/time to sched/clock.  This is necessary because it calls the (now) internal OS function clock_systimer.  clock() is now accessed only via a system call in certain configuratins.
libs/libc/wqueue:  Replace calls to clock_systimer() with calls to the equivalent clock().
This commit is contained in:
Gregory Nutt
2018-06-16 12:50:28 -06:00
parent 8fdbb1e0a4
commit 8fca244f36
12 changed files with 14 additions and 108 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
/****************************************************************************
ystim****************************************************************************
* include/sys/syscall.h
* This file contains the system call numbers.
*
* Copyright (C) 2011-2017 Gregory Nutt. All rights reserved.
* Copyright (C) 2011-2018 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -237,7 +237,7 @@
* NuttX configuration.
*/
#define SYS_clock_systimer (__SYS_clock+0)
#define SYS_clock (__SYS_clock+0)
#define SYS_clock_getres (__SYS_clock+1)
#define SYS_clock_gettime (__SYS_clock+2)
#define SYS_clock_settime (__SYS_clock+3)