diff options
| author | Wincent Balin <wincent@rockbox.org> | 2010-06-01 21:31:55 +0000 |
|---|---|---|
| committer | Wincent Balin <wincent@rockbox.org> | 2010-06-01 21:31:55 +0000 |
| commit | 921d10f86ff76ba90279c2180cf504c0e5076201 (patch) | |
| tree | a15b1603da8a15842d4fd01c0530dec030a3186b /apps/plugins | |
| parent | a9848ce3fed7862d52b299b604535781e440eb4a (diff) | |
| download | rockbox-921d10f86ff76ba90279c2180cf504c0e5076201.zip rockbox-921d10f86ff76ba90279c2180cf504c0e5076201.tar.gz rockbox-921d10f86ff76ba90279c2180cf504c0e5076201.tar.bz2 rockbox-921d10f86ff76ba90279c2180cf504c0e5076201.tar.xz | |
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')
| -rw-r--r-- | apps/plugins/pdbox/pdbox.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/pdbox.c b/apps/plugins/pdbox/pdbox.c index cdec7a2..5cb06f7 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(); |