mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-05 13:51:45 +00:00
IRQ distribution for C2
This commit is contained in:
parent
188515886c
commit
3ad852fcaf
1 changed files with 7 additions and 3 deletions
|
@ -212,9 +212,13 @@ prepare_board() {
|
||||||
echo 2 >/proc/irq/$i/smp_affinity
|
echo 2 >/proc/irq/$i/smp_affinity
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
ODROID-C2)
|
ODROID-C2) # send eth0 to cpu1, mmc/usb2 to cpu2 and usb1 to cpu3
|
||||||
# ODROID-C2, IRQs might be handled by c2_init.sh
|
# 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-XU3)
|
||||||
# ODROID XU4
|
# ODROID XU4
|
||||||
|
|
Loading…
Add table
Reference in a new issue