Rename kernel's clock_vars.h to sys_clock.h

The revised name better reflects the fact that the file defines
macros in addition to declaring variables. In addition, most of
these APIs use the "sys_clock_" prefix, which aligns well with
the new file name.

Change-Id: Ib33517d4b19ec2455303b87200c677e87640fcbc
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2015-06-19 14:22:44 -04:00 committed by Anas Nashif
commit 478128cf9e
10 changed files with 12 additions and 12 deletions

View file

@ -45,7 +45,7 @@ The ARCv2 processor timer provides a 32-bit incrementing, wrap-to-zero counter.
#include <sections.h>
#include <misc/__assert.h>
#include <arch/arc/v2/aux_regs.h>
#include <clock_vars.h>
#include <sys_clock.h>
#include <drivers/system_timer.h>
/*

View file

@ -55,7 +55,7 @@ conjunction with a microkernel.
#include <toolchain.h>
#include <sections.h>
#include <misc/__assert.h>
#include <clock_vars.h>
#include <sys_clock.h>
#include <drivers/system_timer.h>
#ifdef CONFIG_MICROKERNEL

View file

@ -67,7 +67,7 @@ In a nanokernel-only system this device driver omits more complex capabilities
#include <nanokernel.h>
#include <toolchain.h>
#include <sections.h>
#include <clock_vars.h>
#include <sys_clock.h>
#include <drivers/system_timer.h>
#ifdef CONFIG_MICROKERNEL

View file

@ -53,7 +53,7 @@ directly invoke the VIOAPIC APIs to configure/unmask the IRQ.
#include <toolchain.h>
#include <sections.h>
#include <limits.h>
#include <clock_vars.h>
#include <sys_clock.h>
#include <drivers/system_timer.h>
#ifdef CONFIG_MICROKERNEL

View file

@ -46,7 +46,7 @@ After reset, the timer is initialized to zero.
#include <nanokernel.h>
#include <toolchain.h>
#include <sections.h>
#include <clock_vars.h>
#include <sys_clock.h>
#include <drivers/system_timer.h>
#include <drivers/loapic.h> /* LOAPIC registers */

View file

@ -34,7 +34,7 @@
#define TICKS_H
#include <nanokernel.h>
#include <clock_vars.h>
#include <sys_clock.h>
/* externs */

View file

@ -42,7 +42,7 @@
/* generic kernel public APIs */
#include <kernel_version.h>
#include <clock_vars.h>
#include <sys_clock.h>
#include <drivers/rand32.h>
#ifdef __cplusplus

View file

@ -37,8 +37,8 @@ Declare variables used by both system timer device driver and kernel components
that use timer functionality.
*/
#ifndef _CLOCK_VARS__H_
#define _CLOCK_VARS__H_
#ifndef _SYS_CLOCK__H_
#define _SYS_CLOCK__H_
#ifndef _ASMLANGUAGE
#include <stdint.h>
@ -82,4 +82,4 @@ extern struct nano_timer *_nano_timer_list;
#endif /* !_ASMLANGUAGE */
#endif /* _CLOCK_VARS__H_ */
#endif /* _SYS_CLOCK__H_ */

View file

@ -37,7 +37,7 @@
#include <stdint.h> /* uint32_t */
#include <limits.h> /* ULONG_MAX */
#include <misc/printk.h> /* printk */
#include <clock_vars.h>
#include <sys_clock.h>
#include <drivers/system_timer.h>
#define NB_CACHE_WARMING_DRY_RUN 7

View file

@ -215,7 +215,7 @@ static inline void handle_expired_nano_timeouts(int ticks)
/* handle the expired nano timers in the nano timers queue */
#ifdef CONFIG_NANO_TIMERS
#include <clock_vars.h>
#include <sys_clock.h>
static inline void handle_expired_nano_timers(int ticks)
{
if (_nano_timer_list) {