diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-04 19:06:37 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-12-04 19:06:37 +0000 |
commit | db2d9549447cdb4bc0dd608d9bc2557571fd984d (patch) | |
tree | 19bf4f117b18744bf995f8218d9b463633be27d4 /newlib | |
parent | 6ba54a154439e9b430c8077c7cbd335e15ab4c49 (diff) | |
download | cygnal-db2d9549447cdb4bc0dd608d9bc2557571fd984d.tar.gz cygnal-db2d9549447cdb4bc0dd608d9bc2557571fd984d.tar.bz2 cygnal-db2d9549447cdb4bc0dd608d9bc2557571fd984d.zip |
2000-12-04 Joel Sherrill <joel@OARcorp.com>
* libc/include/machine/time.h: RTEMS systems can configure clock
tick rate so use sysconf() to ask.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/machine/time.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index eaa9a748b..049140ecf 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,10 @@ 2000-12-04 Joel Sherrill <joel@OARcorp.com> + * libc/include/machine/time.h: RTEMS systems can configure clock + tick rate so use sysconf() to ask. + +2000-12-04 Joel Sherrill <joel@OARcorp.com> + * libc/include/sys/times.h: Add reference to POSIX standard. 2000-12-04 Joel Sherrill <joel@OARcorp.com> diff --git a/newlib/libc/include/machine/time.h b/newlib/libc/include/machine/time.h index 13857bfde..0caf12655 100644 --- a/newlib/libc/include/machine/time.h +++ b/newlib/libc/include/machine/time.h @@ -1,9 +1,13 @@ #ifndef _MACHTIME_H_ #define _MACHTIME_H_ +#if defined(__rtems__) +#define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK) +#else /* !__rtems__ */ #if defined(__arm__) || defined(__thumb__) #define _CLOCKS_PER_SEC_ 100 #endif +#endif /* !__rtems__ */ #endif /* _MACHTIME_H_ */ |