Re: pm_register() and pm_send_all()

From: Pavel Machek
Date: Thu Mar 13 2008 - 17:03:52 EST


On Thu 2008-03-13 21:54:58, Rafael J. Wysocki wrote:
> On Thursday, 13 of March 2008, Pavel Machek wrote:
> > On Wed 2008-03-12 15:00:42, Andrew Morton wrote:
> > >
> > > This:
> > >
> > > kernel/power/pm.c:203: warning: 'pm_register' is deprecated (declared at kernel/power/pm.c:62)
> > > kernel/power/pm.c:203: warning: 'pm_register' is deprecated (declared at kernel/power/pm.c:62)
> > > kernel/power/pm.c:204: warning: 'pm_send_all' is deprecated (declared at kernel/power/pm.c:178)
> > > kernel/power/pm.c:204: warning: 'pm_send_all' is deprecated (declared at kernel/power/pm.c:178)
> > >
> > > is getting a bit boring. These were marked deprecated at least three years
> > > ago.
> > >
> > >
> > > pm_register() no longer has any callers and afacit can be removed
> > > immediately.
> > >
> > > pm_send_all() has just a handful of callers:
> > >
> > > arch/x86/kernel/apm_32.c
> > > arch/mips/au1000/common/power.c
> > > arch/frv/kernel/pm.c
> >
> > AFAICT pm_send_all is a nop when noone uses pm_register...
>
> Apparently on 2.6.24 it's not used anywehere, at least according to LXR.
>
> > Hmm.. can we just force CONFIG_PM_LEGACY=n, and see what happens?
>
> Do you want me to push this patch and the following one from Ralf to
> Len?

Yes... I think we can kill pm_send_all etc...

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
pomozte zachranit klanovicky les: http://www.ujezdskystrom.info/
--
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/