Messages in this thread Patch in this message |  | | | Date | Wed, 2 Apr 2008 13:20:07 +0200 (CEST) | | From | Roman Zippel <> | | Subject | Re: [PATCH 1/2] Keep track of original clocksource frequency |
| |
Hi,
On Tue, 18 Mar 2008, john stultz wrote:
> @@ -63,6 +64,7 @@ struct clocksource { > cycle_t (*read)(void); > cycle_t mask; > u32 mult; > + s32 mult_orig; > u32 shift; > unsigned long flags; > cycle_t (*vread)(void);
This is wrong, with HZ=100 the jiffies clock multiplier suddenly becomes negative and later the raw interval underflows.
bye, Roman
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
--- include/linux/clocksource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/include/linux/clocksource.h =================================================================== --- linux-2.6.orig/include/linux/clocksource.h +++ linux-2.6/include/linux/clocksource.h @@ -64,7 +64,7 @@ struct clocksource { cycle_t (*read)(void); cycle_t mask; u32 mult; - s32 mult_orig; + u32 mult_orig; u32 shift; unsigned long flags; cycle_t (*vread)(void);
|  |