From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Subject: [PATCH 0/3] pm: Introduce __pm to mark power management code Date: Thu, 9 May 2013 10:09:48 -0700 Message-ID: <1368119391-13837-1-git-send-email-linux@roeck-us.net> Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, Jean Delvare , Len Brown , Pavel Machek , Jingoo Han , Guenter Roeck List-Id: linux-pm@vger.kernel.org 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guenter Roeck Date: Thu, 09 May 2013 17:09:48 +0000 Subject: [lm-sensors] [PATCH 0/3] pm: Introduce __pm to mark power management code Message-Id: <1368119391-13837-1-git-send-email-linux@roeck-us.net> List-Id: References: <1368119366-8716-1-git-send-email-linux@roeck-us.net> In-Reply-To: <1368119366-8716-1-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, 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. _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors