public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] pm: Introduce __pm to mark power management code
@ 2013-05-09 17:09 Guenter Roeck
  2013-05-09 17:38 ` Alan Stern
  2013-05-09 19:15 ` Rafael J. Wysocki
  0 siblings, 2 replies; 9+ messages in thread
From: Guenter Roeck @ 2013-05-09 17:09 UTC (permalink / raw)
  To: linux-pm
  Cc: linux-kernel, lm-sensors, Jean Delvare, Len Brown, Pavel Machek,
	Jingoo Han, Guenter Roeck

The following patch series introduces a marker for power management functions
and data. This this marker, #ifdef CONFIG_PM and #ifdef CONFIG_PM_SLEEP
can be removed from most of the code. This ensures that the conditional code
still compiles but is not included in the object file.

As a side effect, drivers declaring struct dev_pm_ops unconditionally
get a bit smaller if CONFIG_PM_SLEEP is not configured.

The first patch in the series introduces the marker, the following
two patches introduce the marker in two drivers to demonstrate its use.

The patch series depends on the "PM: Add pm_ops_ptr() macro" patch
submitted by Jingoo Han.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/3] pm: Introduce __pm to mark power management code
@ 2013-05-09 17:09 Guenter Roeck
  2013-05-10 10:54 ` Pavel Machek
  0 siblings, 1 reply; 9+ messages in thread
From: Guenter Roeck @ 2013-05-09 17:09 UTC (permalink / raw)
  To: linux-pm
  Cc: linux-kernel, lm-sensors, Jean Delvare, Len Brown, Pavel Machek,
	Jingoo Han, Guenter Roeck

The following patch series introduces a marker for power management functions
and data. This this marker, #ifdef CONFIG_PM and #ifdef CONFIG_PM_SLEEP
can be removed from most of the code. This ensures that the conditional code
still compiles but is not included in the object file.

As a side effect, drivers declaring struct dev_pm_ops unconditionally
get a bit smaller if CONFIG_PM_SLEEP is not configured.

The first patch in the series introduces the marker, the following
two patches introduce the marker in two drivers to demonstrate its use.

The patch series depends on the "PM: Add pm_ops_ptr() macro" patch
submitted by Jingoo Han.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-05-10 10:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 17:09 [PATCH 0/3] pm: Introduce __pm to mark power management code Guenter Roeck
2013-05-09 17:38 ` Alan Stern
2013-05-09 17:48   ` Guenter Roeck
2013-05-09 18:31     ` Alan Stern
2013-05-09 19:12       ` Rafael J. Wysocki
2013-05-09 19:15 ` Rafael J. Wysocki
2013-05-09 20:30   ` Guenter Roeck
  -- strict thread matches above, loose matches on Subject: below --
2013-05-09 17:09 Guenter Roeck
2013-05-10 10:54 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox