i.mx6 SMP_affinity

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx6 SMP_affinity

Jump to solution
1,251 Views
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

Labels (2)
0 Kudos
1 Solution
770 Views
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!

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

View solution in original post

0 Kudos
2 Replies
771 Views
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 Kudos
770 Views
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 Kudos