On 03/29/2010 11:01 PM, Jiri Slaby wrote: > On 03/29/2010 05:33 PM, hong zhang wrote: >> Chris, Jiri, >> >> I only find user space application could call sched_setaffinity(pid, >> ...). No driver is calling it by checking drivers/ subdirectory. > > Why is not kthread (with kthread_bind) good for you? You could also use > set_cpus_allowed_ptr, but I discourage you doing so until you give a reason. And note that irq handlers are not affected by process affinity at all. They run on CPUs specified by irq affinity (which is usually eventually changed by irqbalance user daemon to distribute the load). -- js _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel