From: Herve L. <Herve.Lacheray@Quanser.com> - 2007-11-19 21:09:00
|
I actually edited the "linux-*/arch/arm/Kconfig" file to change HZ = default from 100 and 1000 and that set CONFIG_HZ in" linux-*/.config" to = 1000 during the build. =20 So now, even though CLOCK_REALTIME has a resolution of 1 msec, for = example nanosleep only returns every 2 msec; I am wondering why... =20 Also does anyone know what the upper limit is for the system clock = resolution? Is it: CONFIG_HZ =3D 1535?=20 Or would it be another way to get a finer system clock resolution? =20 Thanks a lot, =20 =20 Herv=E9 ________________________________ From: gum...@li... = [mailto:gum...@li...] On Behalf Of = Heilpern, Mark Sent: Monday, November 19, 2007 12:14 PM To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] 1-ms jiffy? =20 The CONFIG_HZ setting is getting overwritten when you build your kernel; = the overwrite setting is somewhere inside your buildroot/target = directory. =20 To find it, cd to target and issue this command: "find . -name = \*config\* | xargs grep CONFIG_HZ" (without the quotes). On my system = (older than 1553 but I don't know the version), I see the following as = output from that command: ./device/Gumstix/basix-connex/linux.config:CONFIG_HZ=3D100 ./device/Gumstix/basix-connex/.svn/text-base/linux.config.svn-base:CONFIG= _HZ=3D100 ./device/Gumstix/verdex/linux.config:CONFIG_HZ=3D100 ./device/Gumstix/verdex/.svn/text-base/linux.config.svn-base:CONFIG_HZ=3D= 100 =20 Making the appropriate change (in = target/device/Gumstix/basix-connex/linux.config, for your connex) should = propagate into the kernel build. =20 ________________________________ From: gum...@li... = [mailto:gum...@li...] On Behalf Of Herve = Lacheray Sent: Friday, November 16, 2007 4:53 PM To: gum...@li... Subject: [Gumstix-users] 1-ms jiffy? =20 Hi everyone, =20 =20 Is it still possible to set the gumstix's system clock from 10 to 1 = millisecond? =20 I changed the HZ value from 100 to 1000 in the = build_arm_nofpu/linux-*/include/asm-arm/param.h file, as described here: =20 http://docwiki.gumstix.org/Tips_and_tricks#Change_Timer.2FScheduler_Frequ= ency =20 but that did not work. I have a Connex 400MHz and I am using buildroot = revision #1553. =20 I also changed the CONFIG_HZ value from 100 to 1000 in the Linux kernel = .config file but that got reverted back to 100 during the build = process... =20 Thanks in advance for your help, =20 =20 Herv=E9 =20 =20 |