From 3246b0f8fcbf6e3ae3d7c2a87117f67b79cb1665 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 13 Jun 2012 11:29:53 +0200 Subject: score: New structure TOD_Control Group the global TOD variables (_TOD_Now, _TOD_Uptime, and _TOD_Is_set) in a structure to reduce address loads in _TOD_Tickle_ticks(). --- cpukit/score/src/coretodtickle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/src/coretodtickle.c') diff --git a/cpukit/score/src/coretodtickle.c b/cpukit/score/src/coretodtickle.c index 25ab6f3408..fbf67fda79 100644 --- a/cpukit/score/src/coretodtickle.c +++ b/cpukit/score/src/coretodtickle.c @@ -44,11 +44,11 @@ void _TOD_Tickle_ticks( void ) _Watchdog_Ticks_since_boot += 1; /* Update the timespec format uptime */ - _Timestamp_Add_to( &_TOD_Uptime, &tick ); + _Timestamp_Add_to( &_TOD.uptime, &tick ); /* we do not care how much the uptime changed */ /* Update the timespec format TOD */ - seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick ); + seconds = _Timestamp_Add_to_at_tick( &_TOD.now, &tick ); while ( seconds ) { _Watchdog_Tickle_seconds(); seconds--; -- cgit v1.2.3