From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 5 Jan 2005 14:38:35 +0200 From: Alex Yustasov To: devel-kernel@altlinux.ru Subject: Re: [d-kernel] Re: I: new -wks26 kernel Message-ID: <20050105123835.GA3034@server.by> Mail-Followup-To: Alex Yustasov , devel-kernel@altlinux.ru References: <20050103102023.GB8702@lks.home> <20050103145918.GA2151@server.by> <20050103182243.GA7981@lks.home> <20050104090928.GA4825@server.by> <20050104174125.GD8119@lks.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <20050104174125.GD8119@lks.home> User-Agent: Mutt/1.5.6+cvs20041102i Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 12:42:32 -0000 Archived-At: List-Archive: List-Post: --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 04, 2005 at 08:41:25PM +0300, Konstantin A. Lepikhov wrote: > =C9=CE=D4=C5=D2=C5=D3=CE=CF, =C5=D3=D4=D8 =D3=D0=CF=D3=CF=C2 =D3=C4=C5=CC= =C1=D4=D8 =DC=D4=CF =CB=D5=CC=D8=D4=D5=D2=CE=CF (=D2=C1=CE=D8=DB=C5 =CD=CF= =D6=CE=CF =C2=D9=CC=CF =D3=CB=C1=DA=C1=D4=D8 > service sound stop, =CB=C1=CB =D3=C5=CA=DE=C1=D3?) =E5=D3=CC=C9 =DA=D7=D5=CB=CF=D7=D9=C5 =CD=CF=C4=D5=CC=C9 =CE=C5 =DA=C1=CE= =D1=D4=D9, =D4=CF =D2=C1=C2=CF=D4=C1=C5=D4 (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C9=D4. =F0=CF=CD=CE=C9=D4=D3=D1, =C4=CF=D3=D4=D5=D0 =CF=CE =CF=C2=C5=DD=C1=CC =D7= =D3=C5=CD, =CB=D4=CF =C4=CC=D1 =D1=C4=D2=C1 =DE=D4=CF-=D4=CF =C4=C5=CC=C1= =C5=D4. =F7=CF=D4 =CB=C1=CB =DE=D4=CF-=D4=CF =D0=CF=CC=CF=D6=C9=D4=D8, =C1 =D4=CF= =D3=D4=D2=C1=DB=CE=CF =DE=D4=CF =D0=CF=CC=CF=CD=C1=C0. --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="63-swsusp-devices-alt.patch" --- old/kernel/power/suspend.c 2004-11-25 13:51:15 +0200 +++ new/kernel/power/suspend.c 2004-11-25 13:51:45 +0200 @@ -53,6 +53,7 @@ #include #include #include +#include #include #include "suspend.h" @@ -91,6 +91,8 @@ SUSPEND_DRIVERS_PRE_POWERDOWN, }; +static int pm_suspend_state = 0; + void suspend_drivers_resume(int stage) { switch (stage) { @@ -100,6 +102,12 @@ case SUSPEND_DRIVERS_USED_DEVICES_IRQS_ENABLED: BUG_ON(irqs_disabled()); + if (pm_suspend_state) { + if (pm_send_all(PM_RESUME,(void *)0)) + printk(name_suspend + "Problem while sending resume event\n"); + pm_suspend_state=0; + } break; case SUSPEND_DRIVERS_UNUSED_DEVICES_IRQS_DISABLED: @@ -140,6 +148,14 @@ case SUSPEND_DRIVERS_USED_DEVICES_IRQS_ENABLED: BUG_ON(irqs_disabled()); + if (!pm_suspend_state) { + if (pm_send_all(PM_SUSPEND,(void *)3)) { + printk(name_suspend + "Problem while sending suspend event\n"); + result=1; + } + pm_suspend_state=1; + } break; case SUSPEND_DRIVERS_PRE_POWERDOWN: /* Power down system */ --yrj/dFKFPuw6o+aM--