2
* Copyright (C) 2002-2005 Mattia Dongili <malattia@linux.it>
3
* George Staikos <staikos@0wned.org>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
#include "config_parser.h"
23
#define CPUINFO_PROC "/proc/cpuinfo"
25
unsigned long normalize_frequency (struct cpufreq_limits *limits,
26
struct cpufreq_available_frequencies *freqs,
27
unsigned long user_freq);
28
unsigned long percent_to_absolute(unsigned long max_freq, unsigned long user_freq);
29
unsigned long get_max_available_freq(struct cpufreq_available_frequencies *freqs);
30
unsigned long get_min_available_freq(struct cpufreq_available_frequencies *freqs);
31
int get_cpu_num(void);