[patch 02/43] Remove duplicate div_long_long_rem implementation

From: Thomas Gleixner
Date: Wed Nov 30 2005 - 18:56:51 EST


plain text document attachment
(remove-div-long-long-rem-duplicate.patch)
- make posix-timers.c use the generic calc64.h facility

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>

kernel/posix-timers.c | 10 +---------
1 files changed, 1 insertion(+), 9 deletions(-)

Index: linux-2.6.15-rc2-rework/kernel/posix-timers.c
===================================================================
--- linux-2.6.15-rc2-rework.orig/kernel/posix-timers.c
+++ linux-2.6.15-rc2-rework/kernel/posix-timers.c
@@ -35,6 +35,7 @@
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/time.h>
+#include <linux/calc64.h>

#include <asm/uaccess.h>
#include <asm/semaphore.h>
@@ -48,15 +49,6 @@
#include <linux/workqueue.h>
#include <linux/module.h>

-#ifndef div_long_long_rem
-#include <asm/div64.h>
-
-#define div_long_long_rem(dividend,divisor,remainder) ({ \
- u64 result = dividend; \
- *remainder = do_div(result,divisor); \
- result; })
-
-#endif
#define CLOCK_REALTIME_RES TICK_NSEC /* In nano seconds. */

static inline u64 mpy_l_X_l_ll(unsigned long mpy1,unsigned long mpy2)

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/