summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/ppc403/timer/timer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
index 724b936d94..25bd3659d6 100644
--- a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
@@ -23,7 +23,7 @@
*
* Derived from c/src/lib/libcpu/hppa1.1/timer/timer.c:
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -86,6 +86,8 @@ int Read_timer()
{
uint32_t clicks;
uint32_t total;
+ extern uint32_t bsp_timer_least_valid;
+ extern uint32_t bsp_timer_average_overhead;
clicks = get_itimer();
@@ -95,9 +97,9 @@ int Read_timer()
return total; /* in XXX microsecond units */
else {
- if ( total < rtems_cpu_configuration_get_timer_least_valid() )
+ if ( total < bsp_timer_least_valid )
return 0; /* below timer resolution */
- return (total - rtems_cpu_configuration_get_timer_average_overhead());
+ return (total - bsp_timer_average_overhead);
}
}