summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/doom/rockdoom.c4
-rw-r--r--apps/plugins/fire.c6
-rw-r--r--apps/plugins/grayscale.c4
-rw-r--r--apps/plugins/jpeg.c2
-rw-r--r--apps/plugins/mandelbrot.c4
-rw-r--r--apps/plugins/rockboy/emu.c4
6 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c
index a6cceaa..a9bf7af 100644
--- a/apps/plugins/doom/rockdoom.c
+++ b/apps/plugins/doom/rockdoom.c
@@ -784,7 +784,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb = api;
(void)parameter;
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(true);
#endif
@@ -853,7 +853,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->splash(HZ, true, "Bye");
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(false);
#endif
diff --git a/apps/plugins/fire.c b/apps/plugins/fire.c
index 2a4b96d..ac50196 100644
--- a/apps/plugins/fire.c
+++ b/apps/plugins/fire.c
@@ -298,8 +298,8 @@ static inline void fire_draw(void)
void cleanup(void *parameter)
{
(void)parameter;
-
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(false);
#endif
#ifndef HAVE_LCD_COLOR
@@ -338,7 +338,7 @@ int main(void)
}
#endif
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(true);
#endif
#ifndef HAVE_LCD_COLOR
diff --git a/apps/plugins/grayscale.c b/apps/plugins/grayscale.c
index dfb4878..809ace6 100644
--- a/apps/plugins/grayscale.c
+++ b/apps/plugins/grayscale.c
@@ -190,7 +190,7 @@ int main(void)
rb->lcd_puts(0, 0, pbuf);
rb->lcd_update();
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(true);
#endif
gray_show(true); /* switch on greyscale overlay */
@@ -252,7 +252,7 @@ int main(void)
time / 100, time % 100);
rb->lcd_puts(0, 0, pbuf);
gray_deferred_lcd_update(); /* schedule an lcd_update() */
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(false);
#endif
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index 06fa4dd..51999f4 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -2453,7 +2453,7 @@ struct t_disp* get_image(struct jpeg* p_jpg, int ds)
/* the actual decoding */
time = *rb->current_tick;
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(true);
status = jpeg_decode(p_jpg, p_disp->bitmap, ds, cb_progess);
rb->cpu_boost(false);
diff --git a/apps/plugins/mandelbrot.c b/apps/plugins/mandelbrot.c
index 6fe6b35..9b6c82a 100644
--- a/apps/plugins/mandelbrot.c
+++ b/apps/plugins/mandelbrot.c
@@ -491,7 +491,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
/* main loop */
while (true) {
if (redraw > REDRAW_NONE) {
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(true);
#endif
if (redraw == REDRAW_FULL) {
@@ -504,7 +504,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
else
calc_mandelbrot_low_prec();
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(false);
#endif
px_min = 0;
diff --git a/apps/plugins/rockboy/emu.c b/apps/plugins/rockboy/emu.c
index 2af4e52..31346af 100644
--- a/apps/plugins/rockboy/emu.c
+++ b/apps/plugins/rockboy/emu.c
@@ -71,7 +71,7 @@ void emu_run(void)
vid_begin();
lcd_begin();
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(true);
#endif
while(!shut)
@@ -123,7 +123,7 @@ void emu_run(void)
}
-#if !defined(SIMULATOR) && defined(HAVE_ADJUSTABLE_CPU_FREQ)
+#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(false);
#endif
}