• Corey Minyard's avatar
    ipmi_si: Only schedule continuously in the thread in maintenance mode · 340ff31a
    Corey Minyard authored
    ipmi_thread() uses back-to-back schedule() to poll for command
    completion which, on some machines, can push up CPU consumption and
    heavily tax the scheduler locks leading to noticeable overall
    performance degradation.
    
    This was originally added so firmware updates through IPMI would
    complete in a timely manner.  But we can't kill the scheduler
    locks for that one use case.
    
    Instead, only run schedule() continuously in maintenance mode,
    where firmware updates should run.
    Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
    340ff31a
ipmi_si_intf.c 58.9 KB