[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200803232216.44627.rjw@sisk.pl>
Date: Sun, 23 Mar 2008 22:16:43 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Sam Ravnborg <sam@...nborg.org>
Cc: pm list <linux-pm@...ts.linux-foundation.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
Alan Stern <stern@...land.harvard.edu>,
Greg KH <greg@...ah.com>, Len Brown <lenb@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
Alexey Starikovskiy <astarikovskiy@...e.de>,
David Brownell <david-b@...bell.net>,
Pavel Machek <pavel@....cz>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>
Subject: Re: [RFC][PATCH] PM: Introduce new top level suspend and hibernation callbacks (rev. 2)
On Friday, 21 of March 2008, Sam Ravnborg wrote:
> Hi Rafael.
Hi Sam,
> Is it possible to extend this in some way so we avoid the
> #ifdef stuff in the drivers?
Well, I'd love to do something like this.
> We could introduce a few special sections that we discard if
> PM is not in use.
> We have a reliable build time infrastructure to detect
> inconsistencies if needed.
>
> Something like:
> #define __suspend __section(.suspend.text)
> #define __suspenddata __section(.suspend.data)
>
> #define __hibernate __section(.hibernate.text)
> #define __hibernatedata __section(.hibernate.data)
>
> A few more tricks will be needed when we assign the functon pointers.
> We have __devexit_p(*) and we may use something similar.
Unfortunately, I have a little experience with linkers and I don't think I'll
be able to do anything like this in a reasonable time without any help.
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists