summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config/sim.h2
-rw-r--r--firmware/system.c6
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
30long cpu_frequency SHAREDBSS_ATTR = CPU_FREQ; 30#define CPU_FREQ (-1)
31#endif 31#endif
32 32
33long cpu_frequency SHAREDBSS_ATTR = CPU_FREQ;
34
33#ifdef HAVE_ADJUSTABLE_CPU_FREQ 35#ifdef HAVE_ADJUSTABLE_CPU_FREQ
34static int boost_counter SHAREDBSS_ATTR = 0; 36static int boost_counter SHAREDBSS_ATTR = 0;
35static bool cpu_idle SHAREDBSS_ATTR = false; 37static bool cpu_idle SHAREDBSS_ATTR = false;