1 /* Automatically generated by kernel/time/timeconst.bc */
2 /* Time conversion constants for HZ == 250 */
3 
4 #ifndef KERNEL_TIMECONST_H
5 #define KERNEL_TIMECONST_H
6 
7 #include <linux/param.h>
8 #include <linux/types.h>
9 
10 #if HZ != 250
11 #error "include/generated/timeconst.h has the wrong HZ value!"
12 #endif
13 
14 #define HZ_TO_MSEC_MUL32	U64_C(0x80000000)
15 #define HZ_TO_MSEC_ADJ32	U64_C(0x0)
16 #define HZ_TO_MSEC_SHR32	29
17 #define MSEC_TO_HZ_MUL32	U64_C(0x80000000)
18 #define MSEC_TO_HZ_ADJ32	U64_C(0x180000000)
19 #define MSEC_TO_HZ_SHR32	33
20 #define HZ_TO_MSEC_NUM		4
21 #define HZ_TO_MSEC_DEN		1
22 #define MSEC_TO_HZ_NUM		1
23 #define MSEC_TO_HZ_DEN		4
24 
25 #define HZ_TO_USEC_MUL32	U64_C(0xFA000000)
26 #define HZ_TO_USEC_ADJ32	U64_C(0x0)
27 #define HZ_TO_USEC_SHR32	20
28 #define USEC_TO_HZ_MUL32	U64_C(0x83126E98)
29 #define USEC_TO_HZ_ADJ32	U64_C(0x7FF7CED9168)
30 #define USEC_TO_HZ_SHR32	43
31 #define HZ_TO_USEC_NUM		4000
32 #define HZ_TO_USEC_DEN		1
33 #define USEC_TO_HZ_NUM		1
34 #define USEC_TO_HZ_DEN		4000
35 #define HZ_TO_NSEC_NUM		4000000
36 #define HZ_TO_NSEC_DEN		1
37 #define NSEC_TO_HZ_NUM		1
38 #define NSEC_TO_HZ_DEN		4000000
39 
40 #endif /* KERNEL_TIMECONST_H */
41