forked from len0rd/rockbox
Fix oops. Too late now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31554 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eb488ac792
commit
d07c1d57a4
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ int cpufrequency_linux(int cpu)
|
||||||
cpu_dev = open(path, O_RDONLY);
|
cpu_dev = open(path, O_RDONLY);
|
||||||
if (cpu_dev < 0)
|
if (cpu_dev < 0)
|
||||||
return -1;
|
return -1;
|
||||||
if (read(cpu_dev, temp, sizeof(tmp)) >= 0)
|
if (read(cpu_dev, temp, sizeof(temp)) >= 0)
|
||||||
ret = atoi(temp);
|
ret = atoi(temp);
|
||||||
close(cpu_dev);
|
close(cpu_dev);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
@ -161,7 +161,7 @@ int scalingfrequency_linux(int cpu)
|
||||||
cpu_dev = open(path, O_RDONLY);
|
cpu_dev = open(path, O_RDONLY);
|
||||||
if (cpu_dev < 0)
|
if (cpu_dev < 0)
|
||||||
return -1;
|
return -1;
|
||||||
if (read(cpu_dev, temp, sizeof(tmp)) >= 0)
|
if (read(cpu_dev, temp, sizeof(temp)) >= 0)
|
||||||
ret = atoi(temp);
|
ret = atoi(temp);
|
||||||
close(cpu_dev);
|
close(cpu_dev);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue