I'm trying to find timer support for the DaVinci montavista kernel that
is as high resolution as possible - usleep() and clock_gettime using
CLOCK_REALTIME is too coarse (10ms resolution)

I tried enabling CONFIG_HIGH_RES_TIMERS in the defconfig, and tried
using clock_nanosleep() with CLOCK_REALTIME_HR, but it looks like it is
not supported, as it does not sleep at all

Strerror() on the return code shows "Invalid argument"

 

ts1.tv_sec = 3;

ts1.tv_nsec = 0;

 

gettimeofday(&tv1, NULL);

clock_nanosleep(CLOCK_REALTIME_HR, 0, &ts1, NULL);

gettimeofday(&tv2, NULL);

 

Do you know how I can get this to work properly? Does the kernel even
support it? I'm not using the git version

 

Jerry

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to