/shark/trunk/drivers/cpu/include/drivers/shark_cpu26.h |
---|
46,8 → 46,9 |
void CPU26_showinfo(void); |
int CPU26_initDVS(void); |
int CPU26_closeDVS(void); |
int CPU26_DVS_init(void); |
int CPU26_DVS_close(void); |
int CPU26_DVS_status(void); |
int CPU26_get_latency(void); |
int CPU26_set_frequency(unsigned int target_freq, unsigned int relation); |
54,8 → 55,8 |
int CPU26_get_cur_frequency(void); |
int CPU26_get_min_frequency(void); |
int CPU26_get_max_frequency(void); |
int CPU26_get_frequencys(int *buf); |
int CPU26_show_frequencys(char *buf); |
int CPU26_get_frequencies(int *buf); |
int CPU26_show_frequencies(char *buf); |
#endif |
/shark/trunk/drivers/cpu/cpufreq/freq_table.c |
---|
168,7 → 168,6 |
continue; |
count += sprintf26(&buf[count], "%d ", table[i].frequency); |
} |
count += sprintf26(&buf[count], "\n"); |
return count; |
/shark/trunk/drivers/cpu/shark/shark_cpu.c |
---|
85,12 → 85,12 |
return cpufreq_get_max_freq(); |
} |
inline int CPU26_get_frequencys(int *buf) |
inline int CPU26_get_frequencies(int *buf) |
{ |
return cpufreq_get_available_freqs (buf); |
} |
inline int CPU26_show_frequencys(char *buf) |
inline int CPU26_show_frequencies(char *buf) |
{ |
return cpufreq_show_available_freqs (buf); |
} |
100,8 → 100,13 |
return cpufreq_get_latency(); |
} |
int CPU26_initDVS(void) |
inline int CPU26_DVS_status(void) |
{ |
return dvs_installed; |
} |
int CPU26_DVS_init(void) |
{ |
int ret = 0; |
if (cpu_installed == FALSE) |
185,7 → 190,7 |
return -1; |
} |
int CPU26_closeDVS(void) |
int CPU26_DVS_close(void) |
{ |
switch(dvs_installed) { |
case DVS_NONE: |