|
@@ -42,6 +42,20 @@ extern const char linux_proc_banner[];
|
|
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
|
|
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
|
|
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
|
|
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
|
|
|
|
|
|
|
|
+#ifdef CONFIG_LBD
|
|
|
|
+# include <asm/div64.h>
|
|
|
|
+# define sector_div(a, b) do_div(a, b)
|
|
|
|
+#else
|
|
|
|
+# define sector_div(n, b)( \
|
|
|
|
+{ \
|
|
|
|
+ int _res; \
|
|
|
|
+ _res = (n) % (b); \
|
|
|
|
+ (n) /= (b); \
|
|
|
|
+ _res; \
|
|
|
|
+} \
|
|
|
|
+)
|
|
|
|
+#endif
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* upper_32_bits - return bits 32-63 of a number
|
|
* upper_32_bits - return bits 32-63 of a number
|
|
* @n: the number we're accessing
|
|
* @n: the number we're accessing
|