summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/machine/time.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/include/machine/time.h b/newlib/libc/include/machine/time.h
index 3057c817d..9b44941d6 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__