diff options
-rw-r--r-- | c/src/lib/libcpu/powerpc/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 0a32ec25fd..9ec5d55257 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,7 @@ +2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> + + * mpc6xx/timer/timer.c: Cosmetics. + 2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org> * mpc505/timer/timer.c, mpc5xx/timer/timer.c, diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c index b502a90db1..f32ebca34b 100644 --- a/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c +++ b/c/src/lib/libcpu/powerpc/mpc6xx/timer/timer.c @@ -32,7 +32,7 @@ int Timer_get_clicks_overhead() { uint64_t clicks; - PPC_Set_timebase_register((uint64_t ) 0); + PPC_Set_timebase_register((uint64_t) 0); clicks = PPC_Get_timebase_register(); assert(clicks <= 0xffffffff); clicks_overhead = (unsigned) clicks; @@ -50,7 +50,7 @@ void Timer_initialize() */ if (clicks_overhead == 0) clicks_overhead = Timer_get_clicks_overhead(); - PPC_Set_timebase_register((uint64_t ) 0); + PPC_Set_timebase_register((uint64_t) 0); } @@ -69,7 +69,7 @@ int Read_timer() assert( total64 <= 0xffffffff ); /* fits into a uint32_t */ - total = (uint32_t ) total64; + total = (uint32_t) total64; if ( Timer_driver_Find_average_overhead == 1 ) return total; /* in "clicks" of the decrementer units */ |