lkml.org 
[lkml]   [2014]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] sgi-xp: Do not use BUG_ON(!spin_is_locked())
From
On Tue, Aug 12, 2014 at 2:35 AM, Sanjeev Sharma
<sanjeev_sharma@mentor.com> wrote:
> on some architecture spin_is_locked() always return false in
> uniprocessor configuration and can therefore not be used
> with BUG_ON.it would be advise to replace with
> lockdep_assert_held().
>
> Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
Acked-by: Robin Holt <robinmholt@gmail.com>


\
 
 \ /
  Last update: 2014-08-12 20:41    [W:0.074 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site