]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04eef09ad542e89cb862337489f21a434ea86d7a
tree612a0735dd8797f3ca0cfe47693f2350bdae7049
parentf45f9587f1dd1e89dd1c89561c9572f777c5bcb7
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