commit | aee530cfecf4f3ec83b78406bac618cec35853f8 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Wed Aug 13 11:21:34 2014 -0700 |
committer | Matt Fleming <matt.fleming@intel.com> | Fri Aug 22 08:45:40 2014 +0100 |
tree | 612a0735dd8797f3ca0cfe47693f2350bdae7049 | |
parent | 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 [diff] |
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>