diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-12-25 15:44:35 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-12-25 15:44:35 +0000 |
commit | da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c (patch) | |
tree | e053165347e14e7af458ffe19102878a2a393b40 /apps | |
parent | b47bc8abb9130eb08aaff7a7b685d786b179000a (diff) | |
download | rockbox-da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c.tar.gz rockbox-da7d05d5adde2e1ed6553cd814bb16a8d15f5c6c.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index e21d203f7a..a63eb7de6d 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -142,11 +142,18 @@ static bool dbg_os(void) | |||
142 | usage = thread_stack_usage(thread); | 142 | usage = thread_stack_usage(thread); |
143 | status = thread_get_status(thread); | 143 | status = thread_get_status(thread); |
144 | 144 | ||
145 | # ifdef HAVE_PRIORITY_SCHEDULING | ||
145 | snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core, | 146 | snprintf(buf, 32, "(%d) %c%c %d %s: %d%%", core, |
146 | (status == STATE_RUNNING) ? '*' : ' ', | 147 | (status == STATE_RUNNING) ? '*' : ' ', |
147 | thread_status_char(status), | 148 | thread_status_char(status), |
148 | cores[CURRENT_CORE].threads[i].priority, | 149 | cores[CURRENT_CORE].threads[i].priority, |
149 | cores[core].threads[i].name, usage); | 150 | cores[core].threads[i].name, usage); |
151 | # else | ||
152 | snprintf(buf, 32, "(%d) %c%c %s: %d%%", core, | ||
153 | (status == STATE_RUNNING) ? '*' : ' ', | ||
154 | thread_status_char(status), | ||
155 | cores[core].threads[i].name, usage); | ||
156 | # endif | ||
150 | lcd_puts(0, ++line, buf); | 157 | lcd_puts(0, ++line, buf); |
151 | } | 158 | } |
152 | } | 159 | } |