Re: echo mem > /sys/power/state

From: Pavel Machek
Date: Mon Jan 21 2008 - 17:37:55 EST


Hi!

> > index f7dfff2..e5693d6 100644
> > --- a/kernel/power/Makefile
> > +++ b/kernel/power/Makefile
> > @@ -5,7 +5,7 @@ endif
> >
> > obj-y := main.o
> > obj-$(CONFIG_PM_LEGACY) += pm.o
> > -obj-$(CONFIG_PM_SLEEP) += process.o console.o
> > +obj-$(CONFIG_PM_SLEEP) += process.o console.o sleepy.o
>
> Why compiling it uncoditionally? What would be wrong with

Its part of my world domination plan ;-).

> > +extern int set_alarm(int length);
>
> Huh?

Set alarm belongs in drivers/rtc, moved now.

> > + alarm = now+length;
> > + rtc_time_to_tm(alarm, &alm.time);
> > +
> > + retval = cmos_set_alarm(rtc, &alm);
>
> cmos_set_alarm() takes a struct device * too.

Fixed.

Thanks,
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/