Re: Question: schedule()

2007-03-08 Thread Bill Davidsen
albcamus wrote: your kthread IS preemptible unless you call preempt_disable or some locking functions explicitly . I think he's trying to go the other way, make his thread the highest priority to blow anything else in the system out of the water. See his previous post "how to make kernel threa

Re: Question: schedule()

2007-03-06 Thread Schmidt Michal
Mockern wrote: Hi, What does schedule() function do? I want to make my kthread preemptive. It makes a scheduling decision, i.e. it assigns the CPU time to a suitable runnable task. If called with the current task's state set to TASK_(UN)INTERRUPTIBLE, it puts the task to sleep. Kernel threads

RE: Question: schedule()

2007-03-06 Thread albcamus
your kthread IS preemptible unless you call preempt_disable or some locking functions explicitly . Regards, albcamus 2007/3/6, Mockern <[EMAIL PROTECTED]>: Hi, What does schedule() function do? I want to make my kthread preemptive. Thanks - To unsubscribe from this list: send the line "unsubs

Question: schedule()

2007-03-06 Thread Mockern
Hi, What does schedule() function do? I want to make my kthread preemptive. Thanks - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at htt