lkml.org 
[lkml]   [2016]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCHv3 3/6] printk: introduce per-cpu safe_print seq buffer
On (10/18/16 12:46), Steven Rostedt wrote:
> > +
> > +/*
> > + * Returns with local IRQs disabled.
> > + * Can be preempted by NMI.
>
> It does? How does it return with IRQs disabled?
>
> > + */
> > +void __printk_safe_enter(void)
> > +{
> > + this_cpu_inc(printk_safe_context);
> > +}
> > +
> > +/*
> > + * Restores local IRQs state saved in printk_safe_enter().
> > + * Can be preempted by NMI.
> > + */
>
> How does this return with irqs enabled?

ah... leftovers. thanks, will correct.

-ss

\
 
 \ /
  Last update: 2016-10-19 03:11    [W:1.041 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site