ia64/pv_ops: paravirtualized instruction checker.
[linux-2.6/mini2440.git] / drivers / base / power / power.h
blob41f51fae042f06f06d7548f4ad10463b7b399f4f
1 static inline void device_pm_init(struct device *dev)
3 dev->power.status = DPM_ON;
6 #ifdef CONFIG_PM_SLEEP
8 /*
9 * main.c
12 extern struct list_head dpm_list; /* The active device list */
14 static inline struct device *to_device(struct list_head *entry)
16 return container_of(entry, struct device, power.entry);
19 extern void device_pm_add(struct device *);
20 extern void device_pm_remove(struct device *);
22 #else /* CONFIG_PM_SLEEP */
24 static inline void device_pm_add(struct device *dev) {}
25 static inline void device_pm_remove(struct device *dev) {}
27 #endif
29 #ifdef CONFIG_PM
32 * sysfs.c
35 extern int dpm_sysfs_add(struct device *);
36 extern void dpm_sysfs_remove(struct device *);
38 #else /* CONFIG_PM */
40 static inline int dpm_sysfs_add(struct device *dev)
42 return 0;
45 static inline void dpm_sysfs_remove(struct device *dev)
49 #endif