lkml.org 
[lkml]   [1999]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Timer interrupt frequency
On Mon, Aug 23, 1999 at 01:36:53PM +0200, Stephane Letz wrote:
>
> We are developing a kernel module which needs a task to be done with a 1
> millisecond resolution.
>
> - Is there any way to change the frequency of the timer interrupt up to
> 1kHz, or install a fast timer interrupt to be done at 1kHz and keep the
> usual 100 Hz timer interrupt for processes? Or do we need to use a
> real-time kernel like RT Linux?

You can just change the HZ to 1000 (or 1024) in include/asm-i386/param.h.
This however will break some userspace apps that assume HZ==100 in that they
will report wrong times. Also some places in the kernel might not be
completely HZ!=100 clean.

Artur Skawina <skawina@geocities.com> has a patch to address these problems.
Ask him. (Sorry: I don't know if he set up a web page.)

Regards,
--
Kurt Garloff <garloff@suse.de> Wuppertal, FRG
PGP2 key: See mail header, key servers Linux kernel development
SuSE GmbH, Nürnberg, FRG SCSI drivers: tmscsim(DC390), DC395
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.030 / U:2.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site