Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
If you want different values for CLOCK_TICK_RATE, you will have to compile different kernels for each value. If you don't want to do that, Red Hat have figured out a way to pass a tick divider to the kernel on boot in RHEL 4.7 and 5.
Other than that, you probably should check out dynticks which is not in the 2.6.19 kernel (and may not be supportive of your arch yet) and forget about the tick rate altogether unless you have a very specific reason for either high or low tick rates.
I am using linux 2.6.19 and a RFS for the Atmel sam920.
I have been able to change the u-boot 1.1.5 to support the variable clock frequency under which the board can work.
if the board is having is having 80MHz , then the kernel automaticallly takes care of working in 80MHz.
and the CLOCK_TICK_RATE in the include/asm-arm/arch-at91rm9200/timex.h has to be updated accordingly.
if the boards frequency changes to 150Mhz, then the kernel automatically takes care of working in 150MHz.
and the CLOCK_TICK_RATE in the include/asm-arm/arch-at91rm9200/timex.h need not to be updated, for the kernel to work properly. But only the date command does not work properly, as there will be drift in the seconds increment of the date command.
this can be adjusted using adjtimex .Is there a way to tell adjtimex the amount of tick , tolerance to be adjusted in accordance with the new board frequency( for 80mhz to 150Mhz ) .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.