Subject: Re: [PATCH 2/5] powerpc: fix suspend states again

From: Benjamin Herrenschmidt <[email-masked]>
Date: Mon, 19 Mar 2007 16:32:22 +0100

On Mon, 2007-03-19 at 16:22 +0100, Johannes Berg wrote:
> On Mon, 2007-03-19 at 15:48 +0100, Benjamin Herrenschmidt wrote:
> 
> > > I removed
> > > 	set_context(current->active_mm->context.id, current->active_mm->pgd);
> 
> > No, you need that to restore the segment registers. I might work for you
> > by mere luck.
> 
> Hm, I thought they were saved by the lowlevel code, but yeah. I'll need
> to see where to put this. Btw, it looks like it's missing in
> powerbook_sleep_3400 as well?

No, on powerbook_sleep_3400, the CPU is never reset nor powered off.

Ben.