[PATCH, RFC] linkstation: implement standby
Guennadi Liakhovetski
g.liakhovetski at gmx.de
Mon Aug 27 05:10:42 EST 2007
On Sun, 26 Aug 2007, Stephen Rothwell wrote:
> On Sun, 26 Aug 2007 02:03:49 +0200 (CEST) Guennadi Liakhovetski <g.liakhovetski at gmx.de> wrote:
> >
> > +static int ls_pm_enter(suspend_state_t state)
> > +{
> > + char ier;
> > + int ret = 0;
> > + u64 tb;
> > +
> > + if ((ret = mpc10x_suspend(state)) < 0)
> > + return ret;
> > +
> > + /* Get timebase */
> > + tb = get_tb();
> > +
> > + /* put CPU to sleep, re-enabling interrupts */
> > + mpc6xx_enter_sleep();
> > +
> > + local_irq_disable();
> > +
> > + set_tb(tb >> 32, tb & 0xfffffffful);
> > +
> > +fail:
>
> Unused label?
Right, will fix in the next version, thanks.
Guennadi
---
Guennadi Liakhovetski
More information about the Linuxppc-dev
mailing list