diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-16 01:25:17 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-16 01:25:17 +0000 |
| commit | a9b2fb5ee3114fe835f6515b6aeae7454f66d821 (patch) | |
| tree | fc4e96d0c1f215565918406c8827b16b806c1345 /apps/tagcache.c | |
| parent | a3fbbc9fa7e12fd3fce122bbd235dc362050e024 (diff) | |
| download | rockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.zip rockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.tar.gz rockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.tar.bz2 rockbox-a9b2fb5ee3114fe835f6515b6aeae7454f66d821.tar.xz | |
Finally full multicore support for PortalPlayer 502x targets with an eye towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
| -rw-r--r-- | apps/tagcache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 4a2f107..2ed7574 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -88,7 +88,7 @@ #ifndef __PCTOOL__ /* Tag Cache thread. */ -static struct event_queue tagcache_queue; +static struct event_queue tagcache_queue NOCACHEBSS_ATTR; static long tagcache_stack[(DEFAULT_STACK_SIZE + 0x4000)/sizeof(long)]; static const char tagcache_thread_name[] = "tagcache"; #endif @@ -152,7 +152,7 @@ struct tagcache_command_entry { static struct tagcache_command_entry command_queue[TAGCACHE_COMMAND_QUEUE_LENGTH]; static volatile int command_queue_widx = 0; static volatile int command_queue_ridx = 0; -static struct mutex command_queue_mutex; +static struct mutex command_queue_mutex NOCACHEBSS_ATTR; /* Timestamp of the last added event, so we can wait a bit before committing the * whole queue at once. */ static long command_queue_timestamp = 0; @@ -3377,7 +3377,7 @@ static bool delete_entry(long idx_id) */ static bool check_event_queue(void) { - struct event ev; + struct queue_event ev; queue_wait_w_tmo(&tagcache_queue, &ev, 0); switch (ev.id) @@ -3972,7 +3972,7 @@ void tagcache_unload_ramcache(void) #ifndef __PCTOOL__ static void tagcache_thread(void) { - struct event ev; + struct queue_event ev; bool check_done = false; /* If the previous cache build/update was interrupted, commit @@ -4176,9 +4176,9 @@ void tagcache_init(void) mutex_init(&command_queue_mutex); queue_init(&tagcache_queue, true); create_thread(tagcache_thread, tagcache_stack, - sizeof(tagcache_stack), tagcache_thread_name + sizeof(tagcache_stack), 0, tagcache_thread_name IF_PRIO(, PRIORITY_BACKGROUND) - IF_COP(, CPU, false)); + IF_COP(, CPU)); #else tc_stat.initialized = true; allocate_tempbuf(); |