Anyone knows why tehere is a line: expire = timespec_to_jiffies(&t) + (t.tv_sec || t.tv_nsec);
in kernel/timer.c sys_nanosleep It adds additional time tick to expire. If anyone uses small HZ value (eg 100 which is default for arch-ppc) this causes aditional 10ms delay when calling nanosleep. For me ( found by Andrzej Kass) it should be: expire = timespec_to_jiffies(&t) + !(t.tv_sec || t.tv_nsec); //^^add extra tick if there is // nothing in tv_sec and nothing in tv_nsec -- * * * * * * * * * * * * * per pedes ad astra! * * * * * * * * * * * * * mailto:krom at dgt-lab.com.pl ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/