I need to do something every time the number of seconds in the kernel
timer increases.
I would like to have something like:
time_t currSecs, currSecs;
while (1)
{
read(fd, ....); /* Sleep for 1 second */
time(&currSecs); /* I want to be sure that currSecs is
everytime one unit greater than prevSecs */
prevSecs = currSecs;
}
I tried doing a read on /dev/rtc after having enabled one second
interrupt on RTC (RTC_UIE_ON) but RTC is unreliable (too fast).
Bye,
Antonio.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded