i use imx6q and system built with yocto.
Now i want to bind a gpio interrput to cpu2.how can i do?
Solved! Go to Solution.
Hello,
Please use Linux affinity feature.
In particular You may look at i.mx6 Linux CPU IRQ affinity
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello,
Please use Linux affinity feature.
In particular You may look at i.mx6 Linux CPU IRQ affinity
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I have done the problem.
e.g. gpio1_18 interrput to cpu2
//-------------------------------------------------------
90 GPIO1 INT7 interrupt request.
91 GPIO1 INT6 interrupt request.
92 GPIO1 INT5 interrupt request.
93 GPIO1 INT4 interrupt request.
94 GPIO1 INT3 interrupt request.
95 GPIO1 INT2 interrupt request.
96 GPIO1 INT1 interrupt request.
97 GPIO1 INT0 interrupt request.
98 GPIO1 Combined interrupt indication for GPIO1 signals 0 - 15.
99 GPIO1 Combined interrupt indication for GPIO1 signals 16 - 31.
100 GPIO2 Combined interrupt indication for GPIO2 signals 0 - 15.
101 GPIO2 Combined interrupt indication for GPIO2 signals 16 - 31.
102 GPIO3 Combined interrupt indication for GPIO3 signals 0 - 15.
103 GPIO3 Combined interrupt indication for GPIO3 signals 16 - 31.
104 GPIO4 Combined interrupt indication for GPIO4 signals 0 - 15.
105 GPIO4 Combined interrupt indication for GPIO4 signals 16 - 31.
106 GPIO5 Combined interrupt indication for GPIO5 signals 0 - 15.
107 GPIO5 Combined interrupt indication for GPIO5 signals 16 - 31.
108 GPIO6 Combined interrupt indication for GPIO6 signals 0 - 15.
109 GPIO6 Combined interrupt indication for GPIO6 signals 16 - 31.
110 GPIO7 Combined interrupt indication for GPIO7 signals 0 - 15.
111 GPIO7 Combined interrupt indication for GPIO7 signals 16 - 31.
//------------------------------------------------------------------
you should do this:
echo 4 > /proc/irq/99/smp_affinity