core: make sched_runqueues static

PR #1000 overlooked to rename `runqueues` into `sched_runqueues` in
 `sched.h`. This shows that the variable is not used outside of
 `sched.c`.

 As the list should not be accessed outside of the scheduler, so it
 can be `static`.
This commit is contained in:
René Kijewski 2014-10-22 16:53:39 +02:00
parent a57a4e761f
commit b604832777
2 changed files with 1 additions and 6 deletions

View File

@ -152,11 +152,6 @@ extern volatile int sched_num_threads;
*/
extern volatile kernel_pid_t sched_active_pid;
/**
* List of runqueues per priority level
*/
extern clist_node_t *runqueues[SCHED_PRIO_LEVELS];
#if SCHEDSTATISTICS
/**
* Scheduler statistics

View File

@ -45,7 +45,7 @@ volatile tcb_t *sched_active_thread;
volatile kernel_pid_t sched_active_pid = KERNEL_PID_UNDEF;
clist_node_t *sched_runqueues[SCHED_PRIO_LEVELS];
static clist_node_t *sched_runqueues[SCHED_PRIO_LEVELS];
static uint32_t runqueue_bitcache = 0;
#if SCHEDSTATISTICS