summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/kernel/timeconst.h
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/realtek/files/kernel/timeconst.h')
-rw-r--r--target/linux/realtek/files/kernel/timeconst.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/realtek/files/kernel/timeconst.h b/target/linux/realtek/files/kernel/timeconst.h
new file mode 100644
index 000000000..80d378f4f
--- /dev/null
+++ b/target/linux/realtek/files/kernel/timeconst.h
@@ -0,0 +1,35 @@
+/* Automatically generated by kernel/timeconst.pl */
+/* Conversion constants for HZ == 100 */
+
+#ifndef KERNEL_TIMECONST_H
+#define KERNEL_TIMECONST_H
+
+#include <linux/param.h>
+#include <linux/types.h>
+
+#if HZ != 100
+#error "kernel/timeconst.h has the wrong HZ value!"
+#endif
+
+#define HZ_TO_MSEC_MUL32 U64_C(0xa0000000)
+#define HZ_TO_MSEC_ADJ32 U64_C(0x0)
+#define HZ_TO_MSEC_SHR32 28
+#define HZ_TO_MSEC_NUM U64_C(10)
+#define HZ_TO_MSEC_DEN U64_C(1)
+#define MSEC_TO_HZ_MUL32 U64_C(0xcccccccd)
+#define MSEC_TO_HZ_ADJ32 U64_C(0x733333333)
+#define MSEC_TO_HZ_SHR32 35
+#define MSEC_TO_HZ_NUM U64_C(1)
+#define MSEC_TO_HZ_DEN U64_C(10)
+#define HZ_TO_USEC_MUL32 U64_C(0x9c400000)
+#define HZ_TO_USEC_ADJ32 U64_C(0x0)
+#define HZ_TO_USEC_SHR32 18
+#define HZ_TO_USEC_NUM U64_C(10000)
+#define HZ_TO_USEC_DEN U64_C(1)
+#define USEC_TO_HZ_MUL32 U64_C(0xd1b71759)
+#define USEC_TO_HZ_ADJ32 U64_C(0x1fff2e48e8a7)
+#define USEC_TO_HZ_SHR32 45
+#define USEC_TO_HZ_NUM U64_C(1)
+#define USEC_TO_HZ_DEN U64_C(10000)
+
+#endif /* KERNEL_TIMECONST_H */