00001 #include "kal_sched.h" 00002 #include "qos_list.h" 00003 00004 void (*block_hook)(kal_task_t *tsk); 00005 void (*unblock_hook)(kal_task_t *tsk, long old_state); 00006 void (*stop_hook)(kal_task_t *tsk); 00007 void (*continue_hook)(kal_task_t *tsk, long old_state); 00008 void (*fork_hook)(kal_task_t *tsk); 00009 void (*cleanup_hook)(kal_task_t *tsk); 00010 void set_task_rr_prio(kal_task_t *p, int priority) {}; 00011 00012 struct list_head kernel_task_list; 00013 void *current; 00014 void *idle; 00015 int need_resched; 00016 00017 struct list_head kernel_timer_list; 00018 unsigned long long jiffies; 00019 00020 rwlock_t hook_lock; 00021 00022 #include <stdio.h> 00023 void kal_init(void) { 00024 INIT_LIST_HEAD(&kernel_task_list); 00025 INIT_LIST_HEAD(&kernel_timer_list); 00026 }