Soft'N'Design Software
/
projects
/
debian6500.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Configuration of 30MHz on 16 gon full duplex
[debian6500.git]
/
master
/
opt
/
cluster
/
slave
/
etc
/
rc.local
diff --git
a/master/opt/cluster/slave/etc/rc.local
b/master/opt/cluster/slave/etc/rc.local
index 37c199c94e4e2614a38938d20f1de53c7130d719..563698d0bf4d39777571457c9781530eac98af42 100755
(executable)
--- a/
master/opt/cluster/slave/etc/rc.local
+++ b/
master/opt/cluster/slave/etc/rc.local
@@
-1,4
+1,4
@@
-#!/bin/sh -e
+#!/bin/
ba
sh -e
#
# rc.local
#
#
# rc.local
#
@@
-12,7
+12,16
@@
# By default this script does nothing.
for i in $(seq 1 25); do
# By default this script does nothing.
for i in $(seq 1 25); do
- echo TRC6500
+ echo TRC6500
+done
+
+# distribute interrupt for eth0 on core 1-6
+core=(2 4 8 10 20 40)
+l=0
+for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do
+ echo ${core[$l]} > /proc/irq/$i/smp_affinity
+ let l++
+ [ $l -eq 6 ] && l=1
done
exit 0
done
exit 0