forked from Imagelibrary/rtems
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* mpc6xx/timer/timer.c: Cosmetics.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user