lkml.org 
[lkml]   [2011]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Perhaps a side effect regarding NMI returns
From
Date
On Tue, 2011-11-29 at 17:51 -0500, Steven Rostedt wrote:
> static void run_sync(void)
> {
> int enable_irqs = irqs_disabled();
>
> /* We may be called with interrupts disbled. */
> if (enable_irqs)
> local_irq_enable();
> on_each_cpu(do_sync_core, NULL, 1);
> if (enable_irqs)
> local_irq_disable();
> }
>
> Note, it's fine to enable interrupts here, it's only used by ftrace.

Still ugly as hell though, why not push that pain to the caller?


\
 
 \ /
  Last update: 2011-11-30 12:59    [W:0.067 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site