forked from len0rd/rockbox
pdbox: Updated CPU boosting API
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a9848ce3fe
commit
921d10f86f
1 changed files with 6 additions and 2 deletions
|
|
@ -218,8 +218,10 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
return PLUGIN_ERROR;
|
return PLUGIN_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_SCHEDULER_BOOSTCTRL
|
||||||
/* Boost CPU. */
|
/* Boost CPU. */
|
||||||
cpu_boost(true);
|
rb->trigger_cpu_boost();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Start threads. */
|
/* Start threads. */
|
||||||
core_thread_id =
|
core_thread_id =
|
||||||
|
|
@ -258,8 +260,10 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
rb->thread_wait(gui_thread_id);
|
rb->thread_wait(gui_thread_id);
|
||||||
rb->thread_wait(core_thread_id);
|
rb->thread_wait(core_thread_id);
|
||||||
|
|
||||||
|
#ifdef HAVE_SCHEDULER_BOOSTCTRL
|
||||||
/* Unboost CPU. */
|
/* Unboost CPU. */
|
||||||
cpu_boost(false);
|
rb->cancel_cpu_boost();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Close audio subsystem. */
|
/* Close audio subsystem. */
|
||||||
sys_close_audio();
|
sys_close_audio();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue