From 2b9968add9448ba0076652688352747cf07c9b34 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Dec 2008 15:39:49 +0000 Subject: [PATCH] 2008-12-16 Joel Sherrill * sapi/include/rtems/config.h: Remove commented out lines. Add macro for rtems_configuration_get_nanoseconds_per_tick(). --- cpukit/ChangeLog | 5 +++++ cpukit/sapi/include/rtems/config.h | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 944bc3afc9..540f5b9a4f 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2008-12-16 Joel Sherrill + + * sapi/include/rtems/config.h: Remove commented out lines. Add macro + for rtems_configuration_get_nanoseconds_per_tick(). + 2008-12-15 Joel Sherrill * itron/include/rtems/itron/itronapi.h, libmisc/capture/capture.c, diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h index ad3f923965..91110d846f 100644 --- a/cpukit/sapi/include/rtems/config.h +++ b/cpukit/sapi/include/rtems/config.h @@ -57,12 +57,6 @@ typedef void *itron_api_configuration_table; #include -/* XXX should cover these -#include -#include -#include -*/ - #include #include #if defined(RTEMS_MULTIPROCESSING) @@ -208,6 +202,8 @@ extern rtems_configuration_table Configuration; (Configuration.microseconds_per_tick) #define rtems_configuration_get_milliseconds_per_tick() \ (Configuration.microseconds_per_tick / 1000) +#define rtems_configuration_get_nanoseconds_per_tick() \ + (Configuration.microseconds_per_tick * 1000) #define rtems_configuration_get_ticks_per_timeslice() \ (Configuration.ticks_per_timeslice)