aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-05-08 01:08:00 +1000
committerPaul Mackerras <paulus@samba.org>2007-05-08 11:54:19 +1000
commitf596575e81999c0faf01a2fd340bc96dda058f80 (patch)
tree792af13970c576875df2f54077ef98a284c0a0e1 /include/linux
parent0108d3fe3c44f01de224f39347b95f6a94181687 (diff)
downloadkernel_goldelico_gta04-f596575e81999c0faf01a2fd340bc96dda058f80.zip
kernel_goldelico_gta04-f596575e81999c0faf01a2fd340bc96dda058f80.tar.gz
kernel_goldelico_gta04-f596575e81999c0faf01a2fd340bc96dda058f80.tar.bz2
[POWERPC] via-pmu: remove LED sleep notifier
The generic LED code now makes sure that suspended devices don't blink, so we no longer need to do it ourselves. For the suspend to disk case, however, we need to make sure that we don't blink if the PMU sysdev was suspended before the LED device. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pmu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/pmu.h b/include/linux/pmu.h
index b0952e5..37ca573 100644
--- a/include/linux/pmu.h
+++ b/include/linux/pmu.h
@@ -225,4 +225,12 @@ extern unsigned int pmu_power_flags;
/* Backlight */
extern void pmu_backlight_init(void);
+/* some code needs to know if the PMU was suspended for hibernation */
+#ifdef CONFIG_PM
+extern int pmu_sys_suspended;
+#else
+/* if power management is not configured it can't be suspended */
+#define pmu_sys_suspended 0
+#endif
+
#endif /* __KERNEL__ */