summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libsuspend/include/suspend/autosuspend.h')
-rw-r--r--libsuspend/include/suspend/autosuspend.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libsuspend/include/suspend/autosuspend.h b/libsuspend/include/suspend/autosuspend.h
index e130ca3df..21f4d61bf 100644
--- a/libsuspend/include/suspend/autosuspend.h
+++ b/libsuspend/include/suspend/autosuspend.h
@@ -45,6 +45,17 @@ int autosuspend_enable(void);
45int autosuspend_disable(void); 45int autosuspend_disable(void);
46 46
47/* 47/*
48 * force_suspend
49 *
50 * Forces suspend to happen. timeout_ms is used to give system a chance to suspend gracefully.
51 * When timeout expires, suspend will be forced via mem --> /sys/power/state. timeout_ms of 0
52 * will force suspend immediately.
53 *
54 * Returns 0 if system suspended, -1 if suspend did not occur.
55 */
56int autosuspend_force_suspend(int timeout_ms);
57
58/*
48 * set_wakeup_callback 59 * set_wakeup_callback
49 * 60 *
50 * Set a function to be called each time the device returns from suspend. 61 * Set a function to be called each time the device returns from suspend.