• Alessandro Rubini's avatar
    lib: add usleep.c (and call its own init from main) · 3497d157
    Alessandro Rubini authored
    This adds a real usleep implementation. The init function calculates
    the "loops per jiffy" variable, by watching the timer ticks before
    interrupts are enabled by spll_init().  This init takes 40ms.
    
    Then, the udelay runs the same loop used in calculating lpj, and
    is thus correct (it will be slower because we have interrupts running
    at run time, but this is not a problem).
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    3497d157
Name
Last commit
Last update
arch/lm32 Loading commit data...
boards Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 44deab24
ptp-noposix @ 79a7beb2
scripts Loading commit data...
shell Loading commit data...
sockitowm Loading commit data...
softpll Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
revision.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrc_ptp_noposix.c Loading commit data...
wrc_ptp_ppsi.c Loading commit data...