summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/ratemon.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-11-10 23:27:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-11-10 23:27:01 +0000
commitbdf5417eaad505f5c31eabd869ee03755319c90b (patch)
treeb13e99eaeead961d12090ab8055837fd4533f5d5 /cpukit/rtems/include/rtems/rtems/ratemon.h
parent2009-11-09 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-bdf5417eaad505f5c31eabd869ee03755319c90b.tar.bz2
2009-11-10 Jennifer Averett <jennifer.averett@OARcorp.com>
PR 1462/cpukit * rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonperiod.c: Fine tune previous patch after analysis in application.
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/ratemon.h')
-rw-r--r--cpukit/rtems/include/rtems/rtems/ratemon.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
index 4a713ff7e2..03f6cb3c9a 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemon.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
@@ -413,7 +413,11 @@ void _Rate_monotonic_Initiate_statistics(
(_the_period)->Statistics.min_wall_time.tv_nsec = 0x7fffffff; \
} while (0)
#else
- #define _Rate_monotonic_Reset_wall_time_statistics( _the_period )
+ #define _Rate_monotonic_Reset_wall_time_statistics( _the_period ) \
+ do { \
+ /* set the minimum to a large value */ \
+ (_the_period)->Statistics.min_wall_time = 0xffffffff; \
+ } while (0)
#endif
/**
@@ -429,7 +433,11 @@ void _Rate_monotonic_Initiate_statistics(
(_the_period)->Statistics.min_cpu_time.tv_nsec = 0x7fffffff; \
} while (0)
#else
- #define _Rate_monotonic_Reset_cpu_use_statistics( _the_period )
+ #define _Rate_monotonic_Reset_cpu_use_statistics( _the_period ) \
+ do { \
+ /* set the minimum to a large value */ \
+ (_the_period)->Statistics.min_cpu_time = 0xffffffff; \
+ } while (0)
#endif
/**