Re: iBook G4 suspend
On Thu, 29 Apr 2004 13:45:15 +0200
Guido Guenther <agx@debian.org> wrote:
> On Thu, Apr 29, 2004 at 09:21:06AM +0200, Arne Caspari wrote:
> > I am using kernel 2.6.5 on an iBook G4. Is there any way to get this
> > machine into any suspend mode?
> Could you try the attached patch, it should allow for suspend to disk.
> Cheers,
> -- Guido
I think this patch will make system more stable.
--- orig/arch/ppc/kernel/signal.c
+++ mod/arch/ppc/kernel/signal.c
@@ -567,7 +567,10 @@
if (current->flags & PF_FREEZE) {
refrigerator(PF_FREEZE);
- return 0;
+ signr = 0;
+ ret = regs->gpr[3];
+ if (!signal_pending(current))
+ goto no_signal;
}
if (!oldset)
@@ -594,6 +597,7 @@
regs->gpr[3] = EINTR;
/* note that the cr0.SO bit is already set */
} else {
+no_signal:
regs->nip -= 4; /* Back up & retry system call */
regs->result = 0;
regs->trap = 0;
--
Hu Gang / Steve
Linux Registered User 204016
GPG Public Key: http://soulinfo.com/~hugang/hugang.asc
Reply to: