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:
parent
22364188a4
commit
478128cf9e
10 changed files with 12 additions and 12 deletions
|
@ -45,7 +45,7 @@ The ARCv2 processor timer provides a 32-bit incrementing, wrap-to-zero counter.
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <misc/__assert.h>
|
#include <misc/__assert.h>
|
||||||
#include <arch/arc/v2/aux_regs.h>
|
#include <arch/arc/v2/aux_regs.h>
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -55,7 +55,7 @@ conjunction with a microkernel.
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <misc/__assert.h>
|
#include <misc/__assert.h>
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
|
|
||||||
#ifdef CONFIG_MICROKERNEL
|
#ifdef CONFIG_MICROKERNEL
|
||||||
|
|
|
@ -67,7 +67,7 @@ In a nanokernel-only system this device driver omits more complex capabilities
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
|
|
||||||
#ifdef CONFIG_MICROKERNEL
|
#ifdef CONFIG_MICROKERNEL
|
||||||
|
|
|
@ -53,7 +53,7 @@ directly invoke the VIOAPIC APIs to configure/unmask the IRQ.
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
|
|
||||||
#ifdef CONFIG_MICROKERNEL
|
#ifdef CONFIG_MICROKERNEL
|
||||||
|
|
|
@ -46,7 +46,7 @@ After reset, the timer is initialized to zero.
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
#include <toolchain.h>
|
#include <toolchain.h>
|
||||||
#include <sections.h>
|
#include <sections.h>
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
#include <drivers/loapic.h> /* LOAPIC registers */
|
#include <drivers/loapic.h> /* LOAPIC registers */
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#define TICKS_H
|
#define TICKS_H
|
||||||
|
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
|
|
||||||
/* externs */
|
/* externs */
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
/* generic kernel public APIs */
|
/* generic kernel public APIs */
|
||||||
|
|
||||||
#include <kernel_version.h>
|
#include <kernel_version.h>
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/rand32.h>
|
#include <drivers/rand32.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -37,8 +37,8 @@ Declare variables used by both system timer device driver and kernel components
|
||||||
that use timer functionality.
|
that use timer functionality.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CLOCK_VARS__H_
|
#ifndef _SYS_CLOCK__H_
|
||||||
#define _CLOCK_VARS__H_
|
#define _SYS_CLOCK__H_
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -82,4 +82,4 @@ extern struct nano_timer *_nano_timer_list;
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _CLOCK_VARS__H_ */
|
#endif /* _SYS_CLOCK__H_ */
|
|
@ -37,7 +37,7 @@
|
||||||
#include <stdint.h> /* uint32_t */
|
#include <stdint.h> /* uint32_t */
|
||||||
#include <limits.h> /* ULONG_MAX */
|
#include <limits.h> /* ULONG_MAX */
|
||||||
#include <misc/printk.h> /* printk */
|
#include <misc/printk.h> /* printk */
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
#include <drivers/system_timer.h>
|
#include <drivers/system_timer.h>
|
||||||
|
|
||||||
#define NB_CACHE_WARMING_DRY_RUN 7
|
#define NB_CACHE_WARMING_DRY_RUN 7
|
||||||
|
|
|
@ -215,7 +215,7 @@ static inline void handle_expired_nano_timeouts(int ticks)
|
||||||
|
|
||||||
/* handle the expired nano timers in the nano timers queue */
|
/* handle the expired nano timers in the nano timers queue */
|
||||||
#ifdef CONFIG_NANO_TIMERS
|
#ifdef CONFIG_NANO_TIMERS
|
||||||
#include <clock_vars.h>
|
#include <sys_clock.h>
|
||||||
static inline void handle_expired_nano_timers(int ticks)
|
static inline void handle_expired_nano_timers(int ticks)
|
||||||
{
|
{
|
||||||
if (_nano_timer_list) {
|
if (_nano_timer_list) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue