Skip to content

Commit

Permalink
USB2 IRQ affinity tweak (#29)
Browse files Browse the repository at this point in the history
Tested on and works with both kernels: armbian/build@599cf35
  • Loading branch information
Thomas Kaiser authored and ayufan committed Aug 29, 2017
1 parent a185c10 commit 41f1123
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/root/usr/local/sbin/rock64_fix_performance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Tweak_Ondemand_Governor() {

Enable_RPS_and_tweak_IRQ_Affinity() {
for i in 1 2 3 ; do
echo 2 >/proc/irq/$(awk -F":" "/ehci/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity
echo 2 >/proc/irq/$(awk -F":" "/ohci/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity
echo 4 >/proc/irq/$(awk -F":" "/xhci/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity
echo 8 >/proc/irq/$(awk -F":" "/eth0/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity
done
Expand Down

0 comments on commit 41f1123

Please sign in to comment.