[uClinux-dev] timer-problems with arm, linux-2.6.11.8-hsc0

Håkan Kvist hagar at df.lth.se
Tue Aug 23 09:53:03 EDT 2005


Hi

I have the following test program running on a custom board (s3c4510b
based) using a sligtly modified espd_4510b configuration:

#include <unistd.h>
#include <sys/time.h>

int main(int argc, char *argv[])
{
  int i;
  struct timeval tv;

  for (i=0; i< 400; ++i){
      gettimeofday(&tv, NULL);
      printf("gettimeofday: s %u, us: %u\n", tv.tv_sec, tv.tv_usec);
      usleep(1000000);
  }

  return 0;
}

Here is a sample of the output:

gettimeofday: s: 159 , us: 540257
gettimeofday: s: 161 , us: 580289
gettimeofday: s: 163 , us: 620256
gettimeofday: s: 165 , us: 662360
gettimeofday: s: 167 , us: 720258
gettimeofday: s: 169 , us: 760258
gettimeofday: s: 85 , us: 900913      <----- 
gettimeofday: s: 87 , us: 940911
gettimeofday: s: 89 , us: 980909
gettimeofday: s: 92 , us: 20911
gettimeofday: s: 94 , us: 60913
gettimeofday: s: 96 , us: 100910
gettimeofday: s: 98 , us: 140884
gettimeofday: s: 100 , us: 160908
gettimeofday: s: 102 , us: 200913

This happends about every 80 second, is from my point of view quite,
disturbing...

Does anyone have any idea of what I should look into?

I'm using the uclinux-dist-test-20050616 distribution with kernel
2.6.11 with hyoks arm patches and gcc 3.4.1, running big endian.

regards
Håkan




More information about the uClinux-dev mailing list