2005-10-25 16:59:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef KERNEL_SCHEDULER_H
|
|
|
|
#define KERNEL_SCHEDULER_H
|
|
|
|
|
|
|
|
|
2008-09-03 15:10:44 +00:00
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct scheduling_analysis;
|
2005-10-25 16:59:12 +00:00
|
|
|
struct thread;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void scheduler_enqueue_in_run_queue(struct thread *thread);
|
|
|
|
void scheduler_remove_from_run_queue(struct thread *thread);
|
|
|
|
void scheduler_reschedule(void);
|
|
|
|
|
|
|
|
void scheduler_init(void);
|
|
|
|
void scheduler_start(void);
|
|
|
|
|
2008-09-03 15:10:44 +00:00
|
|
|
status_t _user_analyze_scheduling(bigtime_t from, bigtime_t until, void* buffer,
|
|
|
|
size_t size, struct scheduling_analysis* analysis);
|
|
|
|
|
2005-10-25 16:59:12 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* KERNEL_SCHEDULER_H */
|