@@ -8,14 +8,14 @@
#error "kernel/timeconst.h has the wrong HZ value!"
#endif
-#define HZ_TO_MSEC_MUL32 U64_C(0x80000000)
+#define HZ_TO_MSEC_MUL32 U64_C(0x100000000)
#define HZ_TO_MSEC_ADJ32 U64_C(0x0)
-#define HZ_TO_MSEC_SHR32 29
+#define HZ_TO_MSEC_SHR32 30
#define HZ_TO_MSEC_NUM U64_C(4)
#define HZ_TO_MSEC_DEN U64_C(1)
-#define MSEC_TO_HZ_MUL32 U64_C(0x80000000)
-#define MSEC_TO_HZ_ADJ32 U64_C(0x180000000)
-#define MSEC_TO_HZ_SHR32 33
+#define MSEC_TO_HZ_MUL32 U64_C(0x100000000)
+#define MSEC_TO_HZ_ADJ32 U64_C(0x300000000)
+#define MSEC_TO_HZ_SHR32 34
#define MSEC_TO_HZ_NUM U64_C(1)
#define MSEC_TO_HZ_DEN U64_C(4)
#define HZ_TO_USEC_MUL32 U64_C(0xfa000000)
and with HZ=1000:
@@ -8,14 +8,14 @@
#error "kernel/timeconst.h has the wrong HZ value!"
#endif
-#define HZ_TO_MSEC_MUL32 U64_C(0x80000000)
+#define HZ_TO_MSEC_MUL32 U64_C(0x100000000)
#define HZ_TO_MSEC_ADJ32 U64_C(0x0)
-#define HZ_TO_MSEC_SHR32 31
+#define HZ_TO_MSEC_SHR32 32
#define HZ_TO_MSEC_NUM U64_C(1)
#define HZ_TO_MSEC_DEN U64_C(1)
-#define MSEC_TO_HZ_MUL32 U64_C(0x80000000)
+#define MSEC_TO_HZ_MUL32 U64_C(0x100000000)
#define MSEC_TO_HZ_ADJ32 U64_C(0x0)
-#define MSEC_TO_HZ_SHR32 31
+#define MSEC_TO_HZ_SHR32 32
#define MSEC_TO_HZ_NUM U64_C(1)
#define MSEC_TO_HZ_DEN U64_C(1)
#define HZ_TO_USEC_MUL32 U64_C(0xfa000000)