Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1512 → Rev 1513

/demos/trunk/cpufreq/cpufreq.c
4,7 → 4,8
*
* Coordinators: Giorgio Buttazzo <giorgio@sssup.it>
*
* Authors : Paolo Gai <pj@hartik.sssup.it>
* Authors : Mauro Marinoni
* Giacomo Guidi <giacomo@gandalf.sssup.it>
* (see authors.txt for full list of hartik's authors)
*
* ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15,8 → 16,6
*/
 
/*
* Copyright (C) 2000 Paolo Gai
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
46,7 → 45,7
int main(int argc, char **argv)
{
int val, num;
char *buf;
char buf[1000];
 
CPU26_showinfo();
59,10 → 58,10
val = CPU26_get_cur_frequency();
cprintf("Current freq: %d\n", val);
 
num = CPU26_show_frequencys(buf);
num = CPU26_show_frequencies(buf);
if (num>0)
cprintf("Allowed frequencys: %s\n", buf);
num = CPU26_get_frequencys(cpu26_freqs);
num = CPU26_get_frequencies(cpu26_freqs);
 
if (num>0) {
CPU26_set_frequency(cpu26_freqs[0], DVS_RELATION_L);