Making CLOCK_TICK_RATE a variable in linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • virupax
    New Member
    • May 2008
    • 3

    Making CLOCK_TICK_RATE a variable in linux

    Hi
    I am using linux 2.6.19, I want the CLOCK_TICK_RATE macro defined in asm-arm/arch-at91rm9200/timex.h as a variable, so that the board can work in different clock frequencies.
    Is it possible to do , as many of the macros depend on the CLOCK_TICK_RATE macro.
    If it is possible please tell me how to go about.

    Thanks
    Virupax
  • edwardrsmith
    New Member
    • Feb 2008
    • 62

    #2
    If it is defined as a macro then the macros value can be re-assigned when the code is compiled. I don't know if this would work for a system library unless you where willing to compile the kernel. A little more information would be helpful here.

    Edward

    Comment

    Working...