aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-03 21:53:55 +0000
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-03 21:53:55 +0000
commit2387583ee266cd54df01e42234d0d348bebaf510 (patch)
treed04984f71340d5e101d0cbbe0bf4127891875b01 /newlib
parentbc860c9894f8b686581b40e9bc08e8bff1417c3f (diff)
downloadnewlib-2387583ee266cd54df01e42234d0d348bebaf510.zip
newlib-2387583ee266cd54df01e42234d0d348bebaf510.tar.gz
newlib-2387583ee266cd54df01e42234d0d348bebaf510.tar.bz2
2015-02-25 Gedare Bloom <gedare@rtems.org>
* libc/include/machine/time.h (_CLOCKS_PER_SEC_): redefine for RTEMS.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/machine/time.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b23b1ea..146b743 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-25 Gedare Bloom <gedare@rtems.org>
+
+ * libc/include/machine/time.h (_CLOCKS_PER_SEC_): redefine for RTEMS.
+
2015-03-03 Steve Ellcey <sellcey@imgtec.com>
* libc/machine/mips/memset.S: Add support for mips32r6/mips64r6.
diff --git a/newlib/libc/include/machine/time.h b/newlib/libc/include/machine/time.h
index 3057c81..9b44941 100644
--- a/newlib/libc/include/machine/time.h
+++ b/newlib/libc/include/machine/time.h
@@ -1,12 +1,10 @@
#ifndef _MACHTIME_H_
#define _MACHTIME_H_
-#if defined(__rtems__)
-#define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK)
+#if defined(__rtems__) || defined(__VISIUM__)
+#define _CLOCKS_PER_SEC_ 1000000
#elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__)
#define _CLOCKS_PER_SEC_ 100
-#elif defined (__VISIUM__)
-#define _CLOCKS_PER_SEC_ 1000000
#endif
#ifdef __SPU__