Browse Source

[core sched]

* removed declaration from header file
dev/timer
Oliver Hahm 12 years ago
parent
commit
5a0e412249
  1. 1
      core/include/queue.h
  2. 8
      core/include/sched.h
  3. 7
      core/sched.c

1
core/include/queue.h

@ -23,6 +23,7 @@ void queue_add_head(queue_node_t* root, queue_node_t* new_obj);
queue_node_t *queue_remove_head(queue_node_t* root);
void queue_priority_add(queue_node_t* root, queue_node_t* new_obj);
void queue_priority_add_generic(queue_node_t* root, queue_node_t* new_obj, int(*cmp)(queue_node_t*,queue_node_t*)) ;
void queue_remove(queue_node_t* root, queue_node_t *node);
/** @} */
#endif // __QUEUE_H

8
core/include/sched.h

@ -27,13 +27,13 @@ void sched_run();
void sched_set_status(tcb_t *process, unsigned int status);
void sched_switch(uint16_t current_prio, uint16_t other_prio, int in_isr);
volatile unsigned int sched_context_switch_request;
extern volatile unsigned int sched_context_switch_request;
volatile tcb_t *sched_threads[MAXTHREADS];
volatile tcb_t *active_thread;
extern volatile tcb_t *sched_threads[MAXTHREADS];
extern volatile tcb_t *active_thread;
extern volatile int num_tasks;
volatile int thread_pid;
extern volatile int thread_pid;
//#define SCHEDSTATISTICS
#if SCHEDSTATISTICS

7
core/sched.c

@ -25,6 +25,13 @@
volatile int num_tasks = 0;
volatile unsigned int sched_context_switch_request;
volatile tcb_t *sched_threads[MAXTHREADS];
volatile tcb_t *active_thread;
volatile int thread_pid;
clist_node_t *runqueues[SCHED_PRIO_LEVELS];
static uint32_t runqueue_bitcache = 0;

Loading…
Cancel
Save