drm/msm: Do not BUG_ON(!spin_is_locked()) on UP
On !SMP systems spinlocks do not exist. Thus checking of they are active will always fail. Use assert_spin_locked(lock); instead of BUG_ON(!spin_is_locked(lock)); to not BUG() on all UP systems. Signed-off-by: NBruno Prémont <bonbons@linux-vserver.org> [robclark: drop stray ')'] Signed-off-by: NRob Clark <robdclark@gmail.com>
Showing
想要评论请 注册 或 登录