sched/: Review and correct some stylistic inconsistencies
This commit is contained in:
parent
18ce4ff57b
commit
3404b3cb4a
@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* sched/clock/clock.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2014 Gregory Nutt. All rights reserved.
|
||||
@ -31,14 +31,14 @@
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __SCHED_CLOCK_CLOCK_H
|
||||
#define __SCHED_CLOCK_CLOCK_H
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
@ -47,9 +47,9 @@
|
||||
#include <nuttx/clock.h>
|
||||
#include <nuttx/compiler.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
/* Configuration ************************************************************/
|
||||
/* If CONFIG_SYSTEM_TIME64 is selected and the CPU supports long long types,
|
||||
* then a 64-bit system time will be used.
|
||||
@ -59,13 +59,13 @@
|
||||
# undef CONFIG_SYSTEM_TIME64
|
||||
#endif
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Type Definitions
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#if !defined(CONFIG_SCHED_TICKLESS) && !defined(__HAVE_KERNEL_GLOBALS)
|
||||
/* The system clock exists (CONFIG_SCHED_TICKLESS), but it not prototyped
|
||||
@ -83,9 +83,9 @@ extern volatile uint32_t g_system_timer;
|
||||
extern struct timespec g_basetime;
|
||||
#endif
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void weak_function clock_initialize(void);
|
||||
#ifndef CONFIG_SCHED_TICKLESS
|
||||
|
@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* sched/clock/clock_timekeeping.h
|
||||
*
|
||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||
@ -31,14 +31,14 @@
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __SCHED_CLOCK_CLOCK_TIMEKEEPING_H
|
||||
#define __SCHED_CLOCK_CLOCK_TIMEKEEPING_H
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/compiler.h>
|
||||
@ -47,9 +47,9 @@
|
||||
|
||||
#include <nuttx/clock.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
int clock_timekeeping_get_monotonic_time(FAR struct timespec *ts);
|
||||
int clock_timekeeping_get_wall_time(FAR struct timespec *ts);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* sched/timer/timer.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2014-2015 Gregory Nutt. All rights reserved.
|
||||
@ -31,14 +31,14 @@
|
||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __SCHED_TIMER_TIMER_H
|
||||
#define __SCHED_TIMER_TIMER_H
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
@ -49,15 +49,15 @@
|
||||
#include <nuttx/compiler.h>
|
||||
#include <nuttx/wdog.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
#define PT_FLAGS_PREALLOCATED 0x01 /* Timer comes from a pool of preallocated timers */
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
/* This structure represents one POSIX timer */
|
||||
|
||||
@ -74,13 +74,13 @@ struct posix_timer_s
|
||||
struct sigevent pt_event; /* Notification information */
|
||||
};
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
********************************************************************************/
|
||||
|
||||
/* This is a list of free, preallocated timer structures */
|
||||
****************************************************************************/
|
||||
|
||||
#if CONFIG_PREALLOC_TIMERS > 0
|
||||
/* This is a list of free, preallocated timer structures */
|
||||
|
||||
extern volatile sq_queue_t g_freetimers;
|
||||
#endif
|
||||
|
||||
@ -91,12 +91,12 @@ extern volatile sq_queue_t g_freetimers;
|
||||
|
||||
extern volatile sq_queue_t g_alloctimers;
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
********************************************************************************/
|
||||
****************************************************************************/
|
||||
|
||||
void weak_function timer_initialize(void);
|
||||
void weak_function timer_deleteall(pid_t pid);
|
||||
int timer_release(FAR struct posix_timer_s *timer);
|
||||
int timer_release(FAR struct posix_timer_s *timer);
|
||||
|
||||
#endif /* __SCHED_TIMER_TIMER_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user