mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
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:
parent
a57a4e761f
commit
b604832777
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user