1/* 2 * Copyright 2013, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _CPUFREQ_H 6#define _CPUFREQ_H 7 8 9#include <module.h> 10 11#include <scheduler.h> 12 13 14#define CPUFREQ_MODULES_PREFIX "power/cpufreq" 15 16 17const int kCPUPerformanceScaleMax = 1000; 18 19typedef struct cpufreq_module_info { 20 module_info info; 21 22 float rank; 23 24 void (*cpufreq_set_scheduler_mode)(enum scheduler_mode mode); 25 26 status_t (*cpufreq_increase_performance)(int delta); 27 status_t (*cpufreq_decrease_performance)(int delta); 28} cpufreq_module_info; 29 30 31#endif // _CPUFREQ_H 32 33