1 Index: linux-2.6.24/arch/powerpc/kernel/asm-offsets.c
2 ===================================================================
3 --- linux-2.6.24.orig/arch/powerpc/kernel/asm-offsets.c 2008-02-16 13:54:09.000000000 +0100
4 +++ linux-2.6.24/arch/powerpc/kernel/asm-offsets.c 2008-02-16 13:54:30.000000000 +0100
6 DEFINE(CLOCK_REALTIME, CLOCK_REALTIME);
7 DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC);
8 DEFINE(NSEC_PER_SEC, NSEC_PER_SEC);
9 - DEFINE(CLOCK_REALTIME_RES, TICK_NSEC);
10 + DEFINE(CLOCK_REALTIME_RES, MONOTONIC_RES_NSEC);
13 DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry));
14 Index: linux-2.6.24/include/linux/hrtimer.h
15 ===================================================================
16 --- linux-2.6.24.orig/include/linux/hrtimer.h 2008-02-16 13:54:09.000000000 +0100
17 +++ linux-2.6.24/include/linux/hrtimer.h 2008-02-16 13:54:33.000000000 +0100
19 * idea of the (in)accuracy of timers. Timer values are rounded up to
20 * this resolution values.
22 -# define KTIME_HIGH_RES (ktime_t) { .tv64 = 1 }
23 +# define HIGH_RES_NSEC 1
24 +# define KTIME_HIGH_RES (ktime_t) { .tv64 = HIGH_RES_NSEC }
25 +# define MONOTONIC_RES_NSEC HIGH_RES_NSEC
26 # define KTIME_MONOTONIC_RES KTIME_HIGH_RES
30 +# define MONOTONIC_RES_NSEC LOW_RES_NSEC
31 # define KTIME_MONOTONIC_RES KTIME_LOW_RES
34 Index: linux-2.6.24/include/linux/ktime.h
35 ===================================================================
36 --- linux-2.6.24.orig/include/linux/ktime.h 2008-02-16 13:54:09.000000000 +0100
37 +++ linux-2.6.24/include/linux/ktime.h 2008-02-16 13:54:36.000000000 +0100
39 * idea of the (in)accuracy of timers. Timer values are rounded up to
40 * this resolution values.
42 -#define KTIME_LOW_RES (ktime_t){ .tv64 = TICK_NSEC }
43 +#define LOW_RES_NSEC TICK_NSEC
44 +#define KTIME_LOW_RES (ktime_t){ .tv64 = LOW_RES_NSEC }
46 /* Get the monotonic time in timespec format: */
47 extern void ktime_get_ts(struct timespec *ts);