On Fri, 15 Jul 2005, Jesper Juhl wrote: > > It's buggy, that I know. setting kernel_hz (the new boot parameter) to > 250 causes my system clock to run at something like 4-5 times normal > speed 4 times normal. You don't actually make the timer interrupt happen at 250Hz, so the timer will be programmed to run at the full 1kHz. You also need to actually change the LATCH define (in include/linux/jiffies.h) to take this into account (there might be something else too). So /* LATCH is used in the interval timer and ftape setup. */ #define LATCH ((CLOCK_TICK_RATE + HZ/2) / HZ) /* For divider */ should become something like /* LATCH is used in the interval timer and ftape setup. */ #define LATCH ((CLOCK_TICK_RATE*jiffies_increment + HZ/2) / HZ) /* For divider */ and you might be getting closer. Of course, you need to make sure that LATCH is used only after jiffies_increment is set up. See "setup_pit_timer(void)" in arch/i386/kernel/timers/timer_pit.c for more details. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Jesper Juhl <jesper.juhl@gmail.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- References:
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: George Anzinger <george@mvista.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Bill Davidsen <davidsen@tmr.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: David Lang <david.lang@digitalinsight.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Vojtech Pavlik <vojtech@suse.cz>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Lee Revell <rlrevell@joe-job.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Lee Revell <rlrevell@joe-job.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Chris Wedgwood <cw@f00f.org>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Jesper Juhl <jesper.juhl@gmail.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Lee Revell <rlrevell@joe-job.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Linus Torvalds <torvalds@osdl.org>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- From: Jesper Juhl <jesper.juhl@gmail.com>
- Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- Prev by Date: Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- Next by Date: Re: [patch 2.6.13-git] 8250 tweaks
- Previous by thread: Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- Next by thread: Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt
- Index(es):
