|
@@ -51,6 +51,9 @@
|
|
#define SH_DIV(NOM,DEN,LSH) ( (((NOM) / (DEN)) << (LSH)) \
|
|
#define SH_DIV(NOM,DEN,LSH) ( (((NOM) / (DEN)) << (LSH)) \
|
|
+ ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN))
|
|
+ ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN))
|
|
|
|
|
|
|
|
+/* LATCH is used in the interval timer and ftape setup. */
|
|
|
|
+#define LATCH ((CLOCK_TICK_RATE + HZ/2) / HZ) /* For divider */
|
|
|
|
+
|
|
extern int register_refined_jiffies(long clock_tick_rate);
|
|
extern int register_refined_jiffies(long clock_tick_rate);
|
|
|
|
|
|
/* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
|
|
/* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
|