diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-12-24 12:21:16 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-12-24 12:21:16 +0000 |
commit | e3bcb0e2dbfdc6a5a964d08f54b38ba712e9818b (patch) | |
tree | 3e4f8eda6f7ede5809f99b30fe423cc9776f888e | |
parent | 249bba03f1051f4984538f66b9e7d36674c61e5c (diff) | |
download | rockbox-e3bcb0e2dbfdc6a5a964d08f54b38ba712e9818b.tar.gz rockbox-e3bcb0e2dbfdc6a5a964d08f54b38ba712e9818b.zip |
Fix reds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31416 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/config/sim.h | 2 | ||||
-rw-r--r-- | firmware/system.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/config/sim.h b/firmware/export/config/sim.h index fc7996e813..f0c9f47a2f 100644 --- a/firmware/export/config/sim.h +++ b/firmware/export/config/sim.h | |||
@@ -14,8 +14,6 @@ | |||
14 | 14 | ||
15 | #undef FLASH_SIZE | 15 | #undef FLASH_SIZE |
16 | 16 | ||
17 | #undef CPU_FREQ | ||
18 | |||
19 | #undef HAVE_ATA_POWER_OFF | 17 | #undef HAVE_ATA_POWER_OFF |
20 | 18 | ||
21 | #undef CONFIG_LCD | 19 | #undef CONFIG_LCD |
diff --git a/firmware/system.c b/firmware/system.c index 111a94f80e..37631b8735 100644 --- a/firmware/system.c +++ b/firmware/system.c | |||
@@ -26,10 +26,12 @@ | |||
26 | #include "string.h" | 26 | #include "string.h" |
27 | #include "file.h" | 27 | #include "file.h" |
28 | 28 | ||
29 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 29 | #ifndef CPU_FREQ |
30 | long cpu_frequency SHAREDBSS_ATTR = CPU_FREQ; | 30 | #define CPU_FREQ (-1) |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | long cpu_frequency SHAREDBSS_ATTR = CPU_FREQ; | ||
34 | |||
33 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 35 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
34 | static int boost_counter SHAREDBSS_ATTR = 0; | 36 | static int boost_counter SHAREDBSS_ATTR = 0; |
35 | static bool cpu_idle SHAREDBSS_ATTR = false; | 37 | static bool cpu_idle SHAREDBSS_ATTR = false; |