1/*
2 * Copyright 2012, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _CPUIDLE_MODULE_H
6#define _CPUIDLE_MODULE_H
7
8
9#include <module.h>
10
11#include <scheduler.h>
12
13
14#define CPUIDLE_MODULES_PREFIX	"power/cpuidle"
15
16
17typedef struct cpuidle_module_info {
18	module_info		info;
19
20	float			rank;
21
22	void			(*cpuidle_set_scheduler_mode)(enum scheduler_mode mode);
23
24	void			(*cpuidle_idle)(void);
25	void			(*cpuidle_wait)(int32* variable, int32 test);
26} cpuidle_module_info;
27
28
29#endif		// _CPUIDLE_MODULE_H
30