firmware: Do not use WARN_ON(!spin_is_locked())
authorGuenter Roeck <linux@roeck-us.net>
Wed, 13 Aug 2014 18:21:34 +0000 (11:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:03:57 +0000 (09:03 -0700)
commit79943632c58a32b9faf8513d40a8120946cdf35c
treea7f686b65fc2de6b193d56e20c71669a0b39fdea
parentabcc94f8395a956d8aa9188aa5ffb66cba90738c
firmware: Do not use WARN_ON(!spin_is_locked())

commit aee530cfecf4f3ec83b78406bac618cec35853f8 upstream.

spin_is_locked() always returns false for uniprocessor configurations
in several architectures, so do not use WARN_ON with it.
Use lockdep_assert_held() instead to also reduce overhead in
non-debug kernels.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/vars.c