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)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 22 Aug 2014 07:45:40 +0000 (08:45 +0100)
commitaee530cfecf4f3ec83b78406bac618cec35853f8
tree612a0735dd8797f3ca0cfe47693f2350bdae7049
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
firmware: Do not use WARN_ON(!spin_is_locked())

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
drivers/firmware/efi/vars.c