Re: [PATCH] sgi-xp: Do not use BUG_ON(!spin_is_locked())

From: Robin Holt
Date: Tue Aug 12 2014 - 14:21:14 EST


On Tue, Aug 12, 2014 at 2:35 AM, Sanjeev Sharma
<sanjeev_sharma@xxxxxxxxxx> 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@xxxxxxxxxx>
Acked-by: Robin Holt <robinmholt@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/