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/drivers/lcd-remote-2bit-vi.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/drivers/lcd-remote-2bit-vi.c')
-rwxr-xr-x | firmware/drivers/lcd-remote-2bit-vi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-remote-2bit-vi.c b/firmware/drivers/lcd-remote-2bit-vi.c index 48f8b8a25f..bae2824050 100755 --- a/firmware/drivers/lcd-remote-2bit-vi.c +++ b/firmware/drivers/lcd-remote-2bit-vi.c | |||
@@ -1167,7 +1167,7 @@ static void scroll_thread(void) | |||
1167 | void lcd_remote_init(void) | 1167 | void lcd_remote_init(void) |
1168 | { | 1168 | { |
1169 | create_thread(scroll_thread, scroll_stack, | 1169 | create_thread(scroll_thread, scroll_stack, |
1170 | sizeof(scroll_stack), scroll_name); | 1170 | sizeof(scroll_stack), scroll_name IF_PRIO(, PRIORITY_SYSTEM)); |
1171 | } | 1171 | } |
1172 | #else | 1172 | #else |
1173 | void lcd_remote_init(void) | 1173 | void lcd_remote_init(void) |
@@ -1176,9 +1176,10 @@ void lcd_remote_init(void) | |||
1176 | lcd_remote_init_device(); | 1176 | lcd_remote_init_device(); |
1177 | 1177 | ||
1178 | lcd_remote_clear_display(); | 1178 | lcd_remote_clear_display(); |
1179 | queue_clear(&remote_scroll_queue); /* no queue_init() -- private queue */ | 1179 | /* private queue */ |
1180 | queue_init(&remote_scroll_queue, false); | ||
1180 | tick_add_task(remote_tick); | 1181 | tick_add_task(remote_tick); |
1181 | create_thread(scroll_thread, scroll_stack, | 1182 | create_thread(scroll_thread, scroll_stack, |
1182 | sizeof(scroll_stack), scroll_name); | 1183 | sizeof(scroll_stack), scroll_name IF_PRIO(, PRIORITY_SYSTEM)); |
1183 | } | 1184 | } |
1184 | #endif | 1185 | #endif |