summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2010-06-01 21:31:55 +0000
committerWincent Balin <wincent@rockbox.org>2010-06-01 21:31:55 +0000
commit921d10f86ff76ba90279c2180cf504c0e5076201 (patch)
treea15b1603da8a15842d4fd01c0530dec030a3186b /apps/plugins/pdbox
parenta9848ce3fed7862d52b299b604535781e440eb4a (diff)
downloadrockbox-921d10f86ff76ba90279c2180cf504c0e5076201.tar.gz
rockbox-921d10f86ff76ba90279c2180cf504c0e5076201.tar.bz2
rockbox-921d10f86ff76ba90279c2180cf504c0e5076201.zip
pdbox: Updated CPU boosting API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26456 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r--apps/plugins/pdbox/pdbox.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/pdbox.c b/apps/plugins/pdbox/pdbox.c
index cdec7a279c..5cb06f7557 100644
--- a/apps/plugins/pdbox/pdbox.c
+++ b/apps/plugins/pdbox/pdbox.c
@@ -218,8 +218,10 @@ enum plugin_status plugin_start(const void* parameter)
return PLUGIN_ERROR;
}
+#ifdef HAVE_SCHEDULER_BOOSTCTRL
/* Boost CPU. */
- cpu_boost(true);
+ rb->trigger_cpu_boost();
+#endif
/* Start threads. */
core_thread_id =
@@ -258,8 +260,10 @@ enum plugin_status plugin_start(const void* parameter)
rb->thread_wait(gui_thread_id);
rb->thread_wait(core_thread_id);
+#ifdef HAVE_SCHEDULER_BOOSTCTRL
/* Unboost CPU. */
- cpu_boost(false);
+ rb->cancel_cpu_boost();
+#endif
/* Close audio subsystem. */
sys_close_audio();