Re: [PATCH 2/2] tracing: Use proper do_arch_spin_lock() API
From: Steven Rostedt
Date: Thu Sep 22 2022 - 08:39:24 EST
On Thu, 22 Sep 2022 09:55:29 +0200
Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> > Nothing here is needed, as interrupts had better be disabled when this
> > function is called. And there's already a:
> >
> > WARN_ON_ONCE(!irqs_disabled());
>
> You can write that as lockdep_assert_irqs_disabled();
Of course we can ;-) But this was written before that existed.
-- Steve