sched: split sched.h into separate header files
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include <kernel/object.h>
|
||||
#include <kernel/printk.h>
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/task.h>
|
||||
#include <kernel/thread.h>
|
||||
#include <kernel/vm-region.h>
|
||||
|
||||
extern kern_status_t setup_kernel_task(void);
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/percpu.h>
|
||||
#include <kernel/cpu.h>
|
||||
#include <kernel/percpu.h>
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/thread.h>
|
||||
|
||||
#define PRIO_MASK(p) (((uint32_t)1) << (p))
|
||||
#define PRIO_MASK(p) (((uint32_t)1) << (p))
|
||||
#define FIRST_PRIO(m) (m > 0 ? (PRIO_MAX - __builtin_clz(m) - 1) : -1)
|
||||
|
||||
void rq_init(struct runqueue *rq)
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include <kernel/object.h>
|
||||
#include <kernel/printk.h>
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/task.h>
|
||||
#include <kernel/thread.h>
|
||||
#include <kernel/util.h>
|
||||
#include <kernel/vm-region.h>
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
#include <kernel/cpu.h>
|
||||
#include <kernel/machine/thread.h>
|
||||
#include <kernel/object.h>
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/task.h>
|
||||
#include <kernel/thread.h>
|
||||
|
||||
#define THREAD_CAST(p) OBJECT_C_CAST(struct thread, thr_base, &thread_type, p)
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/printk.h>
|
||||
#include <kernel/cpu.h>
|
||||
#include <kernel/clock.h>
|
||||
#include <kernel/cpu.h>
|
||||
#include <kernel/printk.h>
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/thread.h>
|
||||
|
||||
static void timeout_expiry(struct timer *timer)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include <kernel/cpu.h>
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/thread.h>
|
||||
#include <kernel/wait.h>
|
||||
|
||||
void wait_item_init(struct wait_item *item, struct thread *thr)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/vm.h>
|
||||
#include <kernel/util.h>
|
||||
#include <kernel/cpu.h>
|
||||
#include <kernel/sched.h>
|
||||
#include <kernel/thread.h>
|
||||
#include <kernel/util.h>
|
||||
#include <kernel/vm.h>
|
||||
|
||||
static struct worker_pool *__global_worker_pool = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user