Re: 2.6.20.3-rt8 clock_nanosleep() sleeps 10 ms

2007-03-27 Thread John
John wrote: It seems the CPU was not switched to high-resolution mode? # dmesg | grep resolution /* NOTHING */ Do I need to enable ACPI? ACPI seems mandatory for high-resolution mode? I added... CONFIG_ACPI=y CONFIG_ACPI_EC=y CONFIG_ACPI_POWER=y CONFIG_ACPI_SYSTEM=y CONFIG_X86_PM_TIMER=y

2.6.20.3-rt8 clock_nanosleep() sleeps 10 ms

2007-03-27 Thread John
Hello everyone, I'm using 2.6.20.3 patched with -rt8 (and glibc 2.3.6). http://people.redhat.com/mingo/realtime-preempt/older/patch-2.6.20-rt8 I've written a small program where I call clock_nanosleep() in a loop requesting a 2-ms pause, then call clock_gettime(). cf. clock_nanosleep_bug.cxx A