i.mx6 SMP_affinity

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.mx6 SMP_affinity

跳至解决方案
1,614 次查看
zc_tee
Contributor III

Hi all,

I am looking into changing the smp_affinity of the irqs of the i.mx6Dual CPU.

I had refer to both the post below:

i.mx6 Linux CPU IRQ affinity

Re: bind a gpio interrupt to cpu2

but both are using "echo x > /proc/irq/<irq no>/smp_affinity

Is there anyway i can change it at source code level, i.e. in the kernel?

Thank you.

Regards,

Tee

标签 (2)
0 项奖励
回复
1 解答
1,133 次查看
igorpadykov
NXP Employee
NXP Employee

Hi ZC

smp affinity is discussed on common linux forums and one can post it

on linux.org

http://events.linuxfoundation.org/sites/events/files/slides/clement-smp-bring-up-on-arm-soc.pdf

http://www.linux-arm.org    Booting_ARM_Linux_SMP_on_MPCore.doc

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,134 次查看
igorpadykov
NXP Employee
NXP Employee

Hi ZC

smp affinity is discussed on common linux forums and one can post it

on linux.org

http://events.linuxfoundation.org/sites/events/files/slides/clement-smp-bring-up-on-arm-soc.pdf

http://www.linux-arm.org    Booting_ARM_Linux_SMP_on_MPCore.doc

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,133 次查看
zc_tee
Contributor III

Hi Igor,

I found the solution

we can use irq_set_affinity function in arch/arm/mach-mx6/irq.c. That will do the trick

Thanks.

Regards,

Tee

0 项奖励
回复