rcutorture: Handle different mpstat versions
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 11 Dec 2014 01:42:16 +0000 (17:42 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 11 Jan 2015 03:08:03 +0000 (19:08 -0800)
commit94162c8daa839bd0de791f66d754a880e2787c82
tree1859d57d227af77503227b205a330bbd8ce7f2cf
parent917963d0b30f9c4153c372c165178501d97b6b55
rcutorture: Handle different mpstat versions

The mpstat command recently added the %gnice column, which messes up
the cpu2use.sh script's idle-CPU calculations.  This commit therefore
uses $NF instead of $12 to select the last (%idle) column.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
tools/testing/selftests/rcutorture/bin/cpus2use.sh