From: David R. <dav...@ma...> - 2009-10-22 12:10:02
|
Hi all, Recently, I decided to use UML to develope my modules. My module calls mdelay() macro that is implemented in UML as: n = (loops_per_jiffy * HZ * usecs) / MILLION; for(i=0;i<n;i++) do ; while(0); mdelay() worked perfectly in x86 but in UML it doesnt seem to sleep. I've checked loop values: loops_per_jiffy: 27918336 HZ: 100 MILLION: 1000000 My system is: linux 2.6.32-r5 gcc version 4.3.4 (Debian 4.3.4-2) Can it be a compiler optimization? Thanks in advance, David |