mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Cleanup thread_entry definition a bit. Reorder members so that related ones are next to each other and move a pretty hidden define into config.h.
Doesn't make a binsize difference (the comment says the order should be optimized for size). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25659 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c31fdeffdc
commit
c7815abb52
2 changed files with 6 additions and 10 deletions
|
@ -664,6 +664,7 @@ Lyre prototype 1 */
|
||||||
#else /* !BOOTLOADER */
|
#else /* !BOOTLOADER */
|
||||||
|
|
||||||
#define HAVE_EXTENDED_MESSAGING_AND_NAME
|
#define HAVE_EXTENDED_MESSAGING_AND_NAME
|
||||||
|
#define HAVE_WAKEUP_EXT_CB
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
#define HAVE_PRIORITY_SCHEDULING
|
#define HAVE_PRIORITY_SCHEDULING
|
||||||
|
|
|
@ -253,11 +253,13 @@ struct thread_entry
|
||||||
#if NUM_CORES > 1
|
#if NUM_CORES > 1
|
||||||
struct corelock *obj_cl; /* Object corelock where thead is blocked -
|
struct corelock *obj_cl; /* Object corelock where thead is blocked -
|
||||||
states: STATE_BLOCKED/STATE_BLOCKED_W_TMO */
|
states: STATE_BLOCKED/STATE_BLOCKED_W_TMO */
|
||||||
|
struct corelock waiter_cl; /* Corelock for thread_wait */
|
||||||
|
struct corelock slot_cl; /* Corelock to lock thread slot */
|
||||||
|
unsigned char core; /* The core to which thread belongs */
|
||||||
#endif
|
#endif
|
||||||
struct thread_entry *queue; /* List of threads waiting for thread to be
|
struct thread_entry *queue; /* List of threads waiting for thread to be
|
||||||
removed */
|
removed */
|
||||||
#ifdef HAVE_EXTENDED_MESSAGING_AND_NAME
|
#ifdef HAVE_EXTENDED_MESSAGING_AND_NAME
|
||||||
#define HAVE_WAKEUP_EXT_CB
|
|
||||||
void (*wakeup_ext_cb)(struct thread_entry *thread); /* Callback that
|
void (*wakeup_ext_cb)(struct thread_entry *thread); /* Callback that
|
||||||
performs special steps needed when being
|
performs special steps needed when being
|
||||||
forced off of an object's wait queue that
|
forced off of an object's wait queue that
|
||||||
|
@ -279,24 +281,17 @@ struct thread_entry
|
||||||
base priority */
|
base priority */
|
||||||
int skip_count; /* Number of times skipped if higher priority
|
int skip_count; /* Number of times skipped if higher priority
|
||||||
thread was running */
|
thread was running */
|
||||||
#endif
|
|
||||||
uint16_t id; /* Current slot id */
|
|
||||||
unsigned short stack_size; /* Size of stack in bytes */
|
|
||||||
#ifdef HAVE_PRIORITY_SCHEDULING
|
|
||||||
unsigned char base_priority; /* Base priority (set explicitly during
|
unsigned char base_priority; /* Base priority (set explicitly during
|
||||||
creation or thread_set_priority) */
|
creation or thread_set_priority) */
|
||||||
unsigned char priority; /* Scheduled priority (higher of base or
|
unsigned char priority; /* Scheduled priority (higher of base or
|
||||||
all threads blocked by this one) */
|
all threads blocked by this one) */
|
||||||
#endif
|
#endif
|
||||||
|
uint16_t id; /* Current slot id */
|
||||||
|
unsigned short stack_size; /* Size of stack in bytes */
|
||||||
unsigned char state; /* Thread slot state (STATE_*) */
|
unsigned char state; /* Thread slot state (STATE_*) */
|
||||||
#ifdef HAVE_SCHEDULER_BOOSTCTRL
|
#ifdef HAVE_SCHEDULER_BOOSTCTRL
|
||||||
unsigned char cpu_boost; /* CPU frequency boost flag */
|
unsigned char cpu_boost; /* CPU frequency boost flag */
|
||||||
#endif
|
#endif
|
||||||
#if NUM_CORES > 1
|
|
||||||
unsigned char core; /* The core to which thread belongs */
|
|
||||||
struct corelock waiter_cl; /* Corelock for thread_wait */
|
|
||||||
struct corelock slot_cl; /* Corelock to lock thread slot */
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_IO_PRIORITY
|
#ifdef HAVE_IO_PRIORITY
|
||||||
unsigned char io_priority;
|
unsigned char io_priority;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue