lkml.org 
[lkml]   [2005]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [RESEND][PATCH] ppc: fix powersave with interrupts disabled
    I apologize ahead of time for my mailer corrupting the patch. Here is
    the patch again attached so as to get whitespace corruption. Also, I
    removed a set of excessive parens.

    Signed-off-by: Brian Waite <waite@skycomputers.com>

    --- 1.22/arch/ppc/kernel/idle.c Tue Jan 11 19:42:36 2005
    +++ edited/arch/ppc/kernel/idle.c Thu Jan 13 17:22:25 2005
    @@ -39,8 +39,9 @@
    powersave = ppc_md.power_save;

    if (!need_resched()) {
    - if (powersave != NULL)
    - powersave();
    + if (powersave != NULL && !irqs_disabled())
    + powersave();
    +
    else {
    #ifdef CONFIG_SMP
    set_thread_flag(TIF_POLLING_NRFLAG);[unhandled content-type:application/octet-stream]
    \
     
     \ /
      Last update: 2005-03-22 14:09    [W:0.630 / U:208.208 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site