diff options
| author | leochanj105 <leochanj@live.unc.edu> | 2021-10-22 16:36:26 -0400 |
|---|---|---|
| committer | leochanj105 <leochanj@live.unc.edu> | 2021-10-22 16:36:26 -0400 |
| commit | 1f94b49d8f5bbe88286992f2b0bdc740e676ea44 (patch) | |
| tree | ae7473d4fe4a45db8de851acc1cf58aa5fd0baff /redirect_irq.sh | |
| parent | f0097f8a6e0a93224393948eebc3c9179b5085c3 (diff) | |
L3 and irqs
Diffstat (limited to 'redirect_irq.sh')
| -rw-r--r-- | redirect_irq.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/redirect_irq.sh b/redirect_irq.sh new file mode 100644 index 0000000..8435abf --- /dev/null +++ b/redirect_irq.sh | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # Redirect all interrupts to core 0 | ||
| 3 | # i=0 | ||
| 4 | for IRQ in /proc/irq/* | ||
| 5 | do | ||
| 6 | # Skip default_smp_affinity | ||
| 7 | if [ -d $IRQ ]; then | ||
| 8 | irqList[$i]=$(cat $IRQ/smp_affinity_list) | ||
| 9 | echo 0 2> /dev/null > $IRQ/smp_affinity_list | ||
| 10 | echo $IRQ: $(cat $IRQ/smp_affinity_list) | ||
| 11 | fi | ||
| 12 | i=$(( $i + 1 )) | ||
| 13 | done \ No newline at end of file | ||
