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:19:08 +0000 (09:19 -0700)
commitc8834e3a9e8f7079e4b9876c18f26dd6d19506cf
tree42427560558d29b1040e4e46ffaa0ceedaa3f624
parentb9691a7fd3936a8532e9bfa367cd0e01517b4fd5
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