Skip to content

Commit

Permalink
core: make sched_runqueue public
Browse files Browse the repository at this point in the history
Reverting b604832, because thread_yield() needs to access this
information.
  • Loading branch information
OlegHahm committed Oct 27, 2014
1 parent 6b4ac47 commit 6f53cd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions core/include/sched.h
Expand Up @@ -152,6 +152,11 @@ extern volatile int sched_num_threads;
*/
extern volatile kernel_pid_t sched_active_pid;

/**
* List of runqueues per priority level
*/
extern clist_node_t *sched_runqueues[SCHED_PRIO_LEVELS];

/**
* @brief Lets current thread yield in favor of a higher prioritized thread.
*
Expand Down
2 changes: 1 addition & 1 deletion core/sched.c
Expand Up @@ -45,7 +45,7 @@ volatile tcb_t *sched_active_thread;

volatile kernel_pid_t sched_active_pid = KERNEL_PID_UNDEF;

static clist_node_t *sched_runqueues[SCHED_PRIO_LEVELS];
clist_node_t *sched_runqueues[SCHED_PRIO_LEVELS];
static uint32_t runqueue_bitcache = 0;

#if SCHEDSTATISTICS
Expand Down

0 comments on commit 6f53cd4

Please sign in to comment.