diff options
Diffstat (limited to 'include/linux/pm.h')
| -rw-r--r-- | include/linux/pm.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h index e5d7230332a4..a224c7f5c377 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h | |||
| @@ -34,6 +34,19 @@ | |||
| 34 | extern void (*pm_power_off)(void); | 34 | extern void (*pm_power_off)(void); |
| 35 | extern void (*pm_power_off_prepare)(void); | 35 | extern void (*pm_power_off_prepare)(void); |
| 36 | 36 | ||
| 37 | struct device; /* we have a circular dep with device.h */ | ||
| 38 | #ifdef CONFIG_VT_CONSOLE_SLEEP | ||
| 39 | extern void pm_vt_switch_required(struct device *dev, bool required); | ||
| 40 | extern void pm_vt_switch_unregister(struct device *dev); | ||
| 41 | #else | ||
| 42 | static inline void pm_vt_switch_required(struct device *dev, bool required) | ||
| 43 | { | ||
| 44 | } | ||
| 45 | static inline void pm_vt_switch_unregister(struct device *dev) | ||
| 46 | { | ||
| 47 | } | ||
| 48 | #endif /* CONFIG_VT_CONSOLE_SLEEP */ | ||
| 49 | |||
| 37 | /* | 50 | /* |
| 38 | * Device power management | 51 | * Device power management |
| 39 | */ | 52 | */ |
