diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/base/power/power.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/base/power/power.h')
-rw-r--r-- | drivers/base/power/power.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index c0bd03c83b9c..f2a25f18fde7 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h | |||
@@ -34,6 +34,7 @@ extern void device_pm_move_last(struct device *); | |||
34 | 34 | ||
35 | static inline void device_pm_init(struct device *dev) | 35 | static inline void device_pm_init(struct device *dev) |
36 | { | 36 | { |
37 | spin_lock_init(&dev->power.lock); | ||
37 | pm_runtime_init(dev); | 38 | pm_runtime_init(dev); |
38 | } | 39 | } |
39 | 40 | ||
@@ -57,18 +58,18 @@ static inline void device_pm_move_last(struct device *dev) {} | |||
57 | * sysfs.c | 58 | * sysfs.c |
58 | */ | 59 | */ |
59 | 60 | ||
60 | extern int dpm_sysfs_add(struct device *); | 61 | extern int dpm_sysfs_add(struct device *dev); |
61 | extern void dpm_sysfs_remove(struct device *); | 62 | extern void dpm_sysfs_remove(struct device *dev); |
63 | extern void rpm_sysfs_remove(struct device *dev); | ||
64 | extern int wakeup_sysfs_add(struct device *dev); | ||
65 | extern void wakeup_sysfs_remove(struct device *dev); | ||
62 | 66 | ||
63 | #else /* CONFIG_PM */ | 67 | #else /* CONFIG_PM */ |
64 | 68 | ||
65 | static inline int dpm_sysfs_add(struct device *dev) | 69 | static inline int dpm_sysfs_add(struct device *dev) { return 0; } |
66 | { | 70 | static inline void dpm_sysfs_remove(struct device *dev) {} |
67 | return 0; | 71 | static inline void rpm_sysfs_remove(struct device *dev) {} |
68 | } | 72 | static inline int wakeup_sysfs_add(struct device *dev) { return 0; } |
69 | 73 | static inline void wakeup_sysfs_remove(struct device *dev) {} | |
70 | static inline void dpm_sysfs_remove(struct device *dev) | ||
71 | { | ||
72 | } | ||
73 | 74 | ||
74 | #endif | 75 | #endif |