blob: 5f6ce7ea5cbdecc7b68fd52cf385c322d66be031 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef __LINUX_STATE_NOTIFIER_H
#define __LINUX_STATE_NOTIFIER_H
#include <linux/notifier.h>
#define STATE_NOTIFIER_ACTIVE 0x01
#define STATE_NOTIFIER_SUSPEND 0x02
#define STATE_NOTIFIER_BOOST 0x03
struct state_event {
void *data;
};
extern bool state_suspended;
extern void state_suspend(void);
extern void state_resume(void);
extern void state_boost(void);
int state_register_client(struct notifier_block *nb);
int state_unregister_client(struct notifier_block *nb);
int state_notifier_call_chain(unsigned long val, void *v);
#endif /* _LINUX_STATE_NOTIFIER_H */
|