diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-13 11:29:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-14 14:20:30 +0200 |
commit | 3246b0f8fcbf6e3ae3d7c2a87117f67b79cb1665 (patch) | |
tree | 1bab5f10ebe6413148ecaccd8ee7195450984d94 /cpukit/score/src/coretodget.c | |
parent | sapi: Add nanoseconds_per_tick to configuration (diff) | |
download | rtems-3246b0f8fcbf6e3ae3d7c2a87117f67b79cb1665.tar.bz2 |
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().
Diffstat (limited to 'cpukit/score/src/coretodget.c')
-rw-r--r-- | cpukit/score/src/coretodget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/coretodget.c b/cpukit/score/src/coretodget.c index 3e73a8daab..94517e5926 100644 --- a/cpukit/score/src/coretodget.c +++ b/cpukit/score/src/coretodget.c @@ -31,9 +31,9 @@ void _TOD_Get_as_timestamp( /* assume time checked for NULL by caller */ - /* _TOD_Now is the native current time */ + /* _TOD.now is the native current time */ _ISR_Disable( level ); - now = _TOD_Now; + now = _TOD.now; nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)(); _ISR_Enable( level ); |