diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-02 07:56:52 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2006-09-02 07:56:52 +0000 |
commit | 3686228f9d620b108ca272767a3b2fe4db5ec289 (patch) | |
tree | 12ffd0ebae7268fa13da8e913ba71591a7f32efa /apps | |
parent | d386d31ce73da65f89e03e6f3fe93c081e776b83 (diff) | |
download | rockbox-3686228f9d620b108ca272767a3b2fe4db5ec289.tar.gz rockbox-3686228f9d620b108ca272767a3b2fe4db5ec289.zip |
Cleanup threads.c by moving declarations inside structs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10853 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index d9d1e85d11..cfa15c2998 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -78,8 +78,7 @@ /*---------------------------------------------------*/ extern char ata_device; extern int ata_io_address; -extern int num_threads[]; -extern const char *thread_name[][MAXTHREADS]; +extern struct core_entry cores[NUM_CORES]; #ifdef HAVE_LCD_BITMAP /* Test code!!! */ @@ -113,10 +112,10 @@ bool dbg_os(void) } #else lcd_puts(0, 0, "Stack usage:"); - for(i = 0; i < num_threads[CURRENT_CORE];i++) + for(i = 0; i < cores[CURRENT_CORE].num_threads;i++) { usage = thread_stack_usage(i); - snprintf(buf, 32, "%s: %d%%", thread_name[CURRENT_CORE][i], usage); + snprintf(buf, 32, "%s: %d%%", cores[CURRENT_CORE].threads[i].name, usage); lcd_puts(0, 1+i, buf); } #endif |