Fix FreeBSD build.
[haiku.git] / headers / os / drivers / cpuidle.h
blob2373978af90b9ace6d08e7ceae5fe71740c8acc5
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
9 #include <module.h>
11 #include <scheduler.h>
14 #define CPUIDLE_MODULES_PREFIX "power/cpuidle"
17 typedef struct cpuidle_module_info {
18 module_info info;
20 float rank;
22 void (*cpuidle_set_scheduler_mode)(enum scheduler_mode mode);
24 void (*cpuidle_idle)(void);
25 void (*cpuidle_wait)(int32* variable, int32 test);
26 } cpuidle_module_info;
29 #endif // _CPUIDLE_MODULE_H