lkml.org 
[lkml]   [2022]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] tracing: Use proper do_arch_spin_lock() API
On Thu, 22 Sep 2022 09:55:29 +0200
Peter Zijlstra <peterz@infradead.org> 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

\
 
 \ /
  Last update: 2022-09-22 14:40    [W:0.060 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site