Re: how to make driver only runs on one of CPUs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux