Re: [uml-user] mdelay() doesn't sleep

2009-10-22 Thread David Ramirez
Attached below an example code demonstration: --- #include #include #include #include struct task_struct *kthread; int thread(void *args) { while (!kthread_should_stop()) { mdelay(5000); printk(KERN_INFO "Hello!\n"); schedule(); /* To avoid han

Re: [uml-user] mdelay() doesn't sleep

2009-10-22 Thread David Ramirez
I've checked the wrong source version, mdelay() is implemented as: n = (loops_per_jiffy * HZ * usecs) / MILLION; for(i=0;i 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) / MI