diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2014-08-13 11:21:34 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-17 09:21:52 -0700 |
| commit | a54ad360436e05ad5e45da99ec5c828a43d58053 (patch) | |
| tree | 46e332db9d33899aec86b5fdbdb63064a12b51b6 /include/linux | |
| parent | 12a7f32045064c7018831865c0cee9e9f0c651eb (diff) | |
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
