Re: [RFC][PATCH] PM: Introduce new top level suspend and hibernation callbacks (rev. 2)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Friday, March 21, 2008 - 1:15 am

Hi Rafael.

Is it possible to extend this in some way so we avoid the
#ifdef stuff in the drivers?
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.

	Sam




--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH] PM: Introduce new top level suspend and hiber ..., Rafael J. Wysocki, (Thu Mar 20, 5:01 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level su ..., Rafael J. Wysocki, (Thu Mar 20, 5:26 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and h ..., Rafael J. Wysocki, (Thu Mar 20, 7:14 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and h ..., Sam Ravnborg, (Fri Mar 21, 1:15 am)
Re: [RFC][PATCH] PM: Introduce new top level suspend and h ..., Rafael J. Wysocki, (Sat Mar 22, 3:17 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and h ..., Rafael J. Wysocki, (Sat Mar 22, 4:44 pm)
Re: [RFC][PATCH] PM: Introduce new top level suspend and h ..., Rafael J. Wysocki, (Sun Mar 23, 11:41 am)
Re: [RFC][PATCH] PM: Introduce new top level suspend and h ..., Rafael J. Wysocki, (Sun Mar 23, 2:16 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 2:49 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Tue Mar 25, 6:06 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 6:15 am)
Re: [linux-pm] , Alan Stern, (Tue Mar 25, 7:19 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 7:24 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 12:48 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Tue Mar 25, 1:41 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Tue Mar 25, 1:49 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Tue Mar 25, 1:56 pm)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Wed Mar 26, 7:24 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Oliver Neukum, (Wed Mar 26, 8:42 am)
Re: [linux-pm] [RFC][PATCH] PM: Introduce new top level , Rafael J. Wysocki, (Wed Mar 26, 1:46 pm)