EmbLogic's Blog

KERNEL_TIMER…….

In my lkm,when i printed the value of “HZ”.

It comes out 1000.

But the actual value defined in the header  #include<asm/param.h>  is 100.

why..?

2 Responses to KERNEL_TIMER…….

  1. Ishmeet says:

    The value of hertz is architecture dependent. even if it is defined as a constant value in the kernel, it takes the value as per the hardware. (I think….. do let me know if i’m wrong :) ) good criticisms are always welcome

  2. kamran says:

    well ishmeet you are right about the half part i.e. Hardware dependent but the file says it is 100, so there is something fishy about it. What say BRO ??

Leave a Reply to kamran Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>