Re: changing the value of jiffies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You could do busy waiting with udelay/mdelay from linux/delay.h.
But i guess you want some function to be called every <short intervall>
In my opinion there's no other way then changing HZ, which is not
a risk but your cpu will spend more time servicing timer interrupts,
also wrap-arounds will occur more often.
Maybe you want to check out Real Time Linux ..

Patrick


nleszczynski@hns.com schrieb:
> 
> Hi ,
> 
> as I wrote a module for a special processing of IP packets I needed a timer
> more accurate than the 10ms jiffies on my x86 machine....so I had this
> brilliant idea to change HZ to 300 instead of 100 in asm/param.h.
> And it works fine ! But I guess this must not be the right way to do
> things. What are the risks in doing so ?
> Thanks.
> 
> Nicolas.
> 
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux