#!/bin/sh
if [ $# != 1 ]
then
    echo "Syntax: $0 cpu_hex_mask"
		echo "Mask is 1-F where 1 is CPU0"
		echo
    exit
fi
for i in /proc/irq/*; do
	if [ -d $i ]; then
		echo $1 > $i/smp_affinity || true
	else
		echo $1 > $i || true
	fi
done
