summaryrefslogtreecommitdiff
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.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)
218 return PLUGIN_ERROR; 218 return PLUGIN_ERROR;
219 } 219 }
220 220
221#ifdef HAVE_SCHEDULER_BOOSTCTRL
221 /* Boost CPU. */ 222 /* Boost CPU. */
222 cpu_boost(true); 223 rb->trigger_cpu_boost();
224#endif
223 225
224 /* Start threads. */ 226 /* Start threads. */
225 core_thread_id = 227 core_thread_id =
@@ -258,8 +260,10 @@ enum plugin_status plugin_start(const void* parameter)
258 rb->thread_wait(gui_thread_id); 260 rb->thread_wait(gui_thread_id);
259 rb->thread_wait(core_thread_id); 261 rb->thread_wait(core_thread_id);
260 262
263#ifdef HAVE_SCHEDULER_BOOSTCTRL
261 /* Unboost CPU. */ 264 /* Unboost CPU. */
262 cpu_boost(false); 265 rb->cancel_cpu_boost();
266#endif
263 267
264 /* Close audio subsystem. */ 268 /* Close audio subsystem. */
265 sys_close_audio(); 269 sys_close_audio();