mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 08:02:34 -05:00
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:
parent
b47bc8abb9
commit
da7d05d5ad
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue