rcuperf: Warn on bad perf type for built-in tests
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 8 Jul 2018 01:26:50 +0000 (18:26 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 29 Aug 2018 16:20:48 +0000 (09:20 -0700)
commitf0288064425ff9a5e05c8c0fdba6ec7681dd3330
treee832caa7582daec6284398ff4d4b6f720e22fc8b
parente746b558572efbad250e35e582a32ecabc9e9316
rcuperf: Warn on bad perf type for built-in tests

When running a built-in rcuperf test, specifying an invalid perf type
results in what looks like a hard hang, with the error messages hidden
by other boot-time output.  This commit therefore executes a WARN_ON()
in this case so that the splat appears just following the error messages.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcuperf.c