From e6d87036412b952cb083eff2dc716aee97a771f2 Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Fri, 17 May 2013 20:40:24 +0300 Subject: Move to rsdk 3.2.4. Compiles cleanly. Signed-off-by: Roman Yeryomin --- target/linux/realtek/files/kernel/timeconst.h | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 target/linux/realtek/files/kernel/timeconst.h (limited to 'target/linux/realtek/files/kernel/timeconst.h') 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 +#include + +#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 */ -- cgit v1.2.3