Skip to content

Commit

Permalink
[PATCH] hrtimer: remove duplicate div_long_long_rem implementation
Browse files Browse the repository at this point in the history
make posix-timers.c use the generic calc64.h facility

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Jan 10, 2006
1 parent 5cca761 commit 67924be
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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)
Expand Down

0 comments on commit 67924be

Please sign in to comment.