diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-08 18:12:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-08 18:12:18 +0000 |
commit | 6d10c295ee2b44b60d0d269226f4b0a71baf119e (patch) | |
tree | 828c4647ee4896a53628e3ddfbf745b55b91ec1b | |
parent | 2008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-6d10c295ee2b44b60d0d269226f4b0a71baf119e.tar.bz2 |
2008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/nfsclient/src/nfs.c: Use
rtems_clock_get_seconds_since_epoch() from public API.
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libfs/src/nfsclient/src/nfs.c | 16 |
2 files changed, 8 insertions, 13 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index caab6f162d..5d6c5eed12 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com> + + * libfs/src/nfsclient/src/nfs.c: Use + rtems_clock_get_seconds_since_epoch() from public API. + 2008-12-08 Ralf Corsépius <ralf.corsepius@rtems.org> * libfs/src/nfsclient/Makefile.am: Remove RTEMS_RELLDFLAGS. diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c index 164efa108a..751b641cc0 100644 --- a/cpukit/libfs/src/nfsclient/src/nfs.c +++ b/cpukit/libfs/src/nfsclient/src/nfs.c @@ -480,19 +480,9 @@ typedef uint32_t TimeStamp; static inline TimeStamp nowSeconds(void) { -register uint32_t rval; -#ifndef READ_LONG_IS_ATOMIC -rtems_interrupt_level l; - - rtems_interrupt_disable(level); -#endif - - rval = _TOD_Seconds_since_epoch; - -#ifndef READ_LONG_IS_ATOMIC - rtems_interrupt_enable(level); -#endif - return rval; + rtems_interval rval; + rtems_clock_get_seconds_since_epoch( &rval ); + return rval; } |