Initial dockapps git repo
[dockapps.git] / wmpower-0.4.3 / src / power_management / cpufreq / cpufreq.h
blob7b1758f6487dd61c3a2c2a6e47b5d78bf5adb651
1 /***************************************************************************
2 cpufreq.h - description
3 -------------------
4 begin : Feb 10 2003
5 copyright : (C) 2003,2004,2005 by Noberasco Michele
6 e-mail : s4t4n@gentoo.org
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * GNU General Public License for more details. *
20 * *
21 * You should have received a copy of the GNU General Public License *
22 * along with this program; if not, write to the *
23 * Free Software Foundation, Inc., *
24 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
25 * *
26 ***************************************************************************/
29 #define CPUFREQ_GOV_PERFORMANCE "performance"
30 #define CPUFREQ_GOV_ONDEMAND "ondemand"
33 /* Checks wether this machine supports CPU frequency scaling */
34 int check_cpufreq(void);
36 /* Set cpufreq governor */
37 int cpufreq_set_governor(char *governor);
39 /* Get cpufreq governor of CPU #n, where 1<=n<=MAX, where MAX is
40 * the number of CPUs you have in your system
42 char *cpufreq_get_governor(int cpu);