From 6f53cd484dd87b9563f319f62468857d47d6faf7 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Tue, 28 Oct 2014 00:53:49 +0100 Subject: [PATCH] core: make sched_runqueue public Reverting b604832, because thread_yield() needs to access this information. --- core/include/sched.h | 5 +++++ core/sched.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/include/sched.h b/core/include/sched.h index 85f367ee7..6d17ee2a9 100644 --- a/core/include/sched.h +++ b/core/include/sched.h @@ -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. * diff --git a/core/sched.c b/core/sched.c index eee93c9dc..fc44409bb 100644 --- a/core/sched.c +++ b/core/sched.c @@ -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