Browse Source

moved prototype for sched_register_cb() from C file to header

dev/timer
Oleg Hahm 10 years ago
parent
commit
932c626c6b
  1. 3
      core/include/sched.h
  2. 3
      core/sched.c

3
core/include/sched.h

@ -36,7 +36,6 @@ extern volatile tcb_t *active_thread;
extern volatile int num_tasks;
extern volatile int thread_pid;
//#define SCHEDSTATISTICS
#if SCHEDSTATISTICS
typedef struct {
@ -46,6 +45,8 @@ typedef struct {
} schedstat;
extern schedstat pidlist[MAXTHREADS];
void sched_register_cb(void (*callback)(uint32_t, uint32_t));
#endif
/** @} */

3
core/sched.c

@ -37,9 +37,6 @@ volatile int last_pid = -1;
clist_node_t *runqueues[SCHED_PRIO_LEVELS];
static uint32_t runqueue_bitcache = 0;
void sched_register_cb(void (*callback)(uint32_t, uint32_t));
#if SCHEDSTATISTICS
static void (*sched_cb) (uint32_t timestamp, uint32_t value) = NULL;
schedstat pidlist[MAXTHREADS];

Loading…
Cancel
Save