haiku/headers/os/drivers/cpuidle.h
Pawel Dziepak 7db89e8dc3 kernel: Rework cpuidle module
* Create new interface for cpuidle modules (similar to the cpufreq
   interface)
 * Generic cpuidle module is no longer needed
 * Fix and update Intel C-State module
2013-11-25 23:50:27 +01:00

26 lines
432 B
C

/*
* Copyright 2012, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _CPUIDLE_MODULE_H
#define _CPUIDLE_MODULE_H
#include <module.h>
#define CPUIDLE_MODULES_PREFIX "power/cpuidle"
typedef struct cpuidle_module_info {
module_info info;
float rank;
void (*idle)(void);
void (*wait)(int32* variable, int32 test);
} cpuidle_module_info;
#endif // _CPUIDLE_MODULE_H