> + # To calculate the estimated minimal cpus required by device interrupts.
> + nr_min=$(ls /proc/irq/ -l | grep ^d | wc -l)
Xunlei, above nr_min is to lines counted /proc/irq/*? What is the "grep
^d"? It will always be nr_min=1 because there is only one line start
with 'd', right?
ls /proc/irq -1|grep ^d
Talked in irc with Xunlei, I misread '-l' as '-1' per our talking in
irc. Please just ignore this, but it can be improved a bit with
ls -ld /proc/irq/*/ | wc -l