IRQ distribution for C2

This commit is contained in:
zador-blood-stained 2016-06-12 19:15:44 +03:00
parent 188515886c
commit 3ad852fcaf

View file

@ -212,9 +212,13 @@ prepare_board() {
echo 2 >/proc/irq/$i/smp_affinity
done
;;
ODROID-C2)
# ODROID-C2, IRQs might be handled by c2_init.sh
:
ODROID-C2) # send eth0 to cpu1, mmc/usb2 to cpu2 and usb1 to cpu3
# Basics: http://forum.odroid.com/viewtopic.php?f=115&t=8121#p65777
echo 1 >/proc/irq/$(awk -F":" "/eth0/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity_list
for i in $(awk -F':' '/sd_emmc|usb2/{print $1}' /proc/interrupts); do
echo 2 >/proc/irq/$i/smp_affinity_list
done
echo 3 >/proc/irq/$(awk -F":" "/usb1/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity_list
;;
ODROID-XU3)
# ODROID XU4