openssl: replace full recipe for 0.9.8 with a stripped-down libssl0.9.8 recipe contai...
[opendreambox.git] / meta-opendreambox / recipes-connectivity / madwifi / madwifi-ng / madwifi-smp-affinity
1 #!/bin/sh
2 # HACK! ... FIXME!
3 # The interrupt handler if madwifi-ng seems to be too slow respectively disable
4 # interrups for too long. To prevent this, we are moving madwifi-ng interrupt to
5 # CPU1, which will never be running audio/video specific code.
6 if [ $IFACE != "ath0" ]; then
7     exit 0
8 fi
9
10 if [ $MODE = "start" ]; then
11     echo "move irq 33 to CPU1"
12     echo 2 > /proc/irq/33/smp_affinity
13 elif [ $MODE = "stop" ]; then
14     echo "move irq 33 to CPU0"
15     echo 1 > /proc/irq/33/smp_affinity
16 fi
17
18 exit 0