Make debug menu compile without priority scheduling and with multicore

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11838 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-12-25 15:44:35 +00:00
parent b47bc8abb9
commit da7d05d5ad

View file

@ -142,11 +142,18 @@ static bool dbg_os(void)
usage = thread_stack_usage(thread); usage = thread_stack_usage(thread);
status = thread_get_status(thread); status = thread_get_status(thread);
# ifdef HAVE_PRIORITY_SCHEDULING
snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core, snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core,
(status == STATE_RUNNING) ? '*' : ' ', (status == STATE_RUNNING) ? '*' : ' ',
thread_status_char(status), thread_status_char(status),
cores[CURRENT_CORE].threads[i].priority, cores[CURRENT_CORE].threads[i].priority,
cores[core].threads[i].name, usage); cores[core].threads[i].name, usage);
# else
snprintf(buf, 32, "(%d) %c%c %s: %d%%", core,
(status == STATE_RUNNING) ? '*' : ' ',
thread_status_char(status),
cores[core].threads[i].name, usage);
# endif
lcd_puts(0, ++line, buf); lcd_puts(0, ++line, buf);
} }
} }