summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/ratemon.h
diff options
context:
space:
mode:
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 b3552e639a..19eed0c2cf 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemon.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
@@ -446,7 +446,11 @@ void _Rate_monotonic_Initiate_statistics(
); \
} 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
/**
@@ -465,7 +469,11 @@ void _Rate_monotonic_Initiate_statistics(
); \
} 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
/**