lkml.org 
[lkml]   [2005]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] apm.c: ignore_normal_resume is set a bit too late
    From
    Date
    On Mon, 2005-06-13 at 22:20 +1000, Stephen Rothwell wrote:
    > I am not using APM any more and have no way to test such a change. So,
    > can you please do a proper patch with comment and Signed-off-by line and
    > send it to Andrew Morton (akpm@osdl.org) (and cc lkml, I guess). When I
    > see it, I will Ack it to Andrew.


    Summary: apm: Prevent double APM resume on Thinkpad X31

    This patch causes the ignore_normal_resume flag to be set slightly
    earlier, before there is a chance that the apm driver will receive the
    normal resume event from the BIOS. (Addresses Debian bug #310865)

    Signed-off-by: Thomas Hood <jdthood@yahoo.co.uk>

    --
    Thomas Hood <jdthood@aglu.demon.nl>
    --- kernel-source-2.6.11/arch/i386/kernel/apm.c_ORIG 2005-03-02 08:37:47.000000000 +0100
    +++ kernel-source-2.6.11/arch/i386/kernel/apm.c 2005-06-13 14:59:51.000000000 +0200
    @@ -1220,13 +1220,13 @@ static int suspend(int vetoable)

    save_processor_state();
    err = set_system_power_state(APM_STATE_SUSPEND);
    + ignore_normal_resume = 1;
    restore_processor_state();

    write_seqlock_irq(&xtime_lock);
    spin_lock(&i8253_lock);
    reinit_timer();
    set_time();
    - ignore_normal_resume = 1;

    spin_unlock(&i8253_lock);
    write_sequnlock_irq(&xtime_lock);
    \
     
     \ /
      Last update: 2005-06-13 15:43    [W:3.080 / U:1.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site