diff options
Diffstat (limited to 'include/linux/idle.h')
-rw-r--r-- | include/linux/idle.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/idle.h b/include/linux/idle.h new file mode 100644 index 00000000000..75bd2a422c8 --- /dev/null +++ b/include/linux/idle.h @@ -0,0 +1,19 @@ +/* + * include/linux/idle.h - generic idle definition + * + */ +#ifndef _LINUX_IDLE_H_ +#define _LINUX_IDLE_H_ + +#include <linux/notifier.h> + +enum idle_val { + IDLE_START = 1, + IDLE_END = 2, +}; + +int notify_idle(enum idle_val val); +void register_idle_notifier(struct notifier_block *n); +void unregister_idle_notifier(struct notifier_block *n); + +#endif /* _LINUX_IDLE_H_ */ |