lkml.org 
[lkml]   [2011]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 4/9] ftrace: Add enable/disable ftrace_ops control interface
    From
    Date
    On Mon, 2011-11-28 at 21:15 +0100, Peter Zijlstra wrote:
    > On Mon, 2011-11-28 at 15:12 -0500, Steven Rostedt wrote:
    > > Actually, from what I've been told, x86 seems to be the only arch that
    > > does crazy things with NMIs. Most the other archs do NMI when the system
    > > is dead. That is, there's no return to normal system processing once an
    > > NMI is hit.
    >
    > Sparc64 implements effective NMIs by playing games with their interrupt
    > priority levels. local_irq_disable() disable the lower 15 (0-14) levels
    > only, and their PMU interrupts at level 15.
    >
    > That generates an effective NMI (interrupt not blocked by
    > local_irq_disable()).

    [ Added David ]

    I think it's ok on sparc to modify code on one processor while another
    processor is executing it. If not then we need the tricks that x86 does,
    but if its ok, then we don't even need stop_machine();

    -- Steve




    \
     
     \ /
      Last update: 2011-11-28 21:27    [W:2.808 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site