Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.25-rc3 61 lines 937 B view raw
1#ifdef CONFIG_PM_SLEEP 2 3/* 4 * main.c 5 */ 6 7extern struct list_head dpm_active; /* The active device list */ 8 9static inline struct device *to_device(struct list_head *entry) 10{ 11 return container_of(entry, struct device, power.entry); 12} 13 14extern void device_pm_add(struct device *); 15extern void device_pm_remove(struct device *); 16extern int pm_sleep_lock(void); 17extern void pm_sleep_unlock(void); 18 19#else /* CONFIG_PM_SLEEP */ 20 21 22static inline void device_pm_add(struct device *dev) 23{ 24} 25 26static inline void device_pm_remove(struct device *dev) 27{ 28} 29 30static inline int pm_sleep_lock(void) 31{ 32 return 0; 33} 34 35static inline void pm_sleep_unlock(void) 36{ 37} 38 39#endif 40 41#ifdef CONFIG_PM 42 43/* 44 * sysfs.c 45 */ 46 47extern int dpm_sysfs_add(struct device *); 48extern void dpm_sysfs_remove(struct device *); 49 50#else /* CONFIG_PM */ 51 52static inline int dpm_sysfs_add(struct device *dev) 53{ 54 return 0; 55} 56 57static inline void dpm_sysfs_remove(struct device *dev) 58{ 59} 60 61#endif