57,33 → 57,39 |
extern int cpufreq_get_min_freq(void); |
extern int cpufreq_get_max_freq(void); |
extern int cpufreq_get_latency(void); |
extern int cpufreq_show_available_freqs(char *buf); |
|
static int cpu_installed = FALSE; |
static int dvs_installed = DVS_NONE; |
|
/* DVS user function */ |
int CPU26_set_frequency(unsigned int target_freq, unsigned int relation) |
inline int CPU26_set_frequency(unsigned int target_freq, unsigned int relation) |
{ |
return cpufreq_target(target_freq, relation); |
} |
|
int CPU26_get_cur_frequency() |
inline int CPU26_get_cur_frequency() |
{ |
return cpufreq_get_cur_freq(); |
} |
|
int CPU26_get_min_frequency() |
inline int CPU26_get_min_frequency() |
{ |
return cpufreq_get_min_freq(); |
} |
|
int CPU26_get_max_frequency() |
inline int CPU26_get_max_frequency() |
{ |
return cpufreq_get_max_freq(); |
} |
|
int CPU26_get_latency() |
inline int CPU26_get_frequencys(char *buf) |
{ |
return cpufreq_show_available_freqs (buf); |
} |
|
inline int CPU26_get_latency() |
{ |
return cpufreq_get_latency(); |
} |
|
208,12 → 214,12 |
} |
|
/* Init the Linux CPU Layer */ |
int CPU26_installed(void) |
inline int CPU26_installed(void) |
{ |
return cpu_installed; |
} |
|
void CPU26_showinfo(void) |
inline void CPU26_showinfo(void) |
{ |
print_cpu_info_0(); |
} |
236,7 → 242,7 |
return ret; |
} |
|
int CPU26_close(void) |
inline int CPU26_close(void) |
{ |
if (cpu_installed == TRUE) { |
return 0; |