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 /cpukit/libfs/src/nfsclient/src/nfs.c | |
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.
Diffstat (limited to 'cpukit/libfs/src/nfsclient/src/nfs.c')
-rw-r--r-- | cpukit/libfs/src/nfsclient/src/nfs.c | 16 |
1 files changed, 3 insertions, 13 deletions
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; } |