diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 16:18:11 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-16 16:18:11 +0000 |
commit | a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f (patch) | |
tree | a30695ed540bf32365d577f46398f712c7a494c4 /firmware/backlight.c | |
parent | baf5494341cdd6cdb9590e21d429920b9bc4a2c6 (diff) | |
download | rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.tar.gz rockbox-a85044bf9eaa0a7206c1978d3cfd57ab2d7fae2f.zip |
New scheduler, with priorities for swcodec platforms. Frequent task
switching should be more efficient and tasks are stored in linked
lists to eliminate unnecessary task switching to improve performance.
Audio should no longer skip on swcodec targets caused by too CPU
hungry UI thread or background threads.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r-- | firmware/backlight.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index bf88cbe9bc..4e76072822 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c | |||
@@ -618,12 +618,13 @@ static void backlight_tick(void) | |||
618 | 618 | ||
619 | void backlight_init(void) | 619 | void backlight_init(void) |
620 | { | 620 | { |
621 | queue_init(&backlight_queue); | 621 | queue_init(&backlight_queue, true); |
622 | #ifdef X5_BACKLIGHT_SHUTDOWN | 622 | #ifdef X5_BACKLIGHT_SHUTDOWN |
623 | backlight_thread_id = | 623 | backlight_thread_id = |
624 | #endif | 624 | #endif |
625 | create_thread(backlight_thread, backlight_stack, | 625 | create_thread(backlight_thread, backlight_stack, |
626 | sizeof(backlight_stack), backlight_thread_name); | 626 | sizeof(backlight_stack), backlight_thread_name |
627 | IF_PRIO(, PRIORITY_SYSTEM)); | ||
627 | tick_add_task(backlight_tick); | 628 | tick_add_task(backlight_tick); |
628 | #ifdef SIMULATOR | 629 | #ifdef SIMULATOR |
629 | /* do nothing */ | 630 | /* do nothing */ |