aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2010-10-15 11:28:07 +0200
committerRobert Richter <robert.richter@amd.com>2010-10-15 12:47:18 +0200
commitcd254f295248c98b62ea824f361e10d80a081fe7 (patch)
treeeef867346f4e41db9067f8628f6ec596b47e7313 /drivers/oprofile
parentb3b3a9b63f2deacfd59137e3781211d21a568ca9 (diff)
downloadkernel_samsung_aries-cd254f295248c98b62ea824f361e10d80a081fe7.zip
kernel_samsung_aries-cd254f295248c98b62ea824f361e10d80a081fe7.tar.gz
kernel_samsung_aries-cd254f295248c98b62ea824f361e10d80a081fe7.tar.bz2
oprofile: make !CONFIG_PM function stubs static inline
Make !CONFIG_PM function stubs static inline and remove section attribute. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile')
-rw-r--r--drivers/oprofile/oprofile_perf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/oprofile/oprofile_perf.c b/drivers/oprofile/oprofile_perf.c
index 36ec67e..9046f7b 100644
--- a/drivers/oprofile/oprofile_perf.c
+++ b/drivers/oprofile/oprofile_perf.c
@@ -190,6 +190,7 @@ static void oprofile_perf_stop(void)
}
#ifdef CONFIG_PM
+
static int oprofile_perf_suspend(struct platform_device *dev, pm_message_t state)
{
mutex_lock(&oprofile_perf_mutex);
@@ -241,9 +242,12 @@ static void exit_driverfs(void)
platform_device_unregister(oprofile_pdev);
platform_driver_unregister(&oprofile_driver);
}
+
#else
-static int __init init_driverfs(void) { return 0; }
-#define exit_driverfs() do { } while (0)
+
+static inline int init_driverfs(void) { return 0; }
+static inline void exit_driverfs(void) { }
+
#endif /* CONFIG_PM */
void oprofile_perf_exit(void)