moved prototype for sched_register_cb() from C file to header
This commit is contained in:
parent
570c0e717d
commit
932c626c6b
@ -36,7 +36,6 @@ extern volatile tcb_t *active_thread;
|
|||||||
extern volatile int num_tasks;
|
extern volatile int num_tasks;
|
||||||
extern volatile int thread_pid;
|
extern volatile int thread_pid;
|
||||||
|
|
||||||
//#define SCHEDSTATISTICS
|
|
||||||
#if SCHEDSTATISTICS
|
#if SCHEDSTATISTICS
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -46,6 +45,8 @@ typedef struct {
|
|||||||
} schedstat;
|
} schedstat;
|
||||||
|
|
||||||
extern schedstat pidlist[MAXTHREADS];
|
extern schedstat pidlist[MAXTHREADS];
|
||||||
|
|
||||||
|
void sched_register_cb(void (*callback)(uint32_t, uint32_t));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@ -37,9 +37,6 @@ volatile int last_pid = -1;
|
|||||||
clist_node_t *runqueues[SCHED_PRIO_LEVELS];
|
clist_node_t *runqueues[SCHED_PRIO_LEVELS];
|
||||||
static uint32_t runqueue_bitcache = 0;
|
static uint32_t runqueue_bitcache = 0;
|
||||||
|
|
||||||
void sched_register_cb(void (*callback)(uint32_t, uint32_t));
|
|
||||||
|
|
||||||
|
|
||||||
#if SCHEDSTATISTICS
|
#if SCHEDSTATISTICS
|
||||||
static void (*sched_cb) (uint32_t timestamp, uint32_t value) = NULL;
|
static void (*sched_cb) (uint32_t timestamp, uint32_t value) = NULL;
|
||||||
schedstat pidlist[MAXTHREADS];
|
schedstat pidlist[MAXTHREADS];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user