00001
00014
00015
00016
00017
00018
00019 #ifndef __DISPATCH_GSD_24_H__
00020 #define __DISPATCH_GSD_24_H__
00021
00022 #include <linux/sched.h>
00023
00024 #define SCHED_OTHER SCHED_NORMAL
00025
00026 #define STOP_PRIORITY -2100
00029 #define qos_log_state(__t) qos_log_debug("(%d), state: %ld, prio: %d", (__t)->pid, (__t)->state, (int)(__t)->rt_priority)
00030
00032 #define qos_log_state_simple(__t) qos_log_simple(QOS_DEBUG_LEVEL, "(%d),s:%ld, p:%d", (__t)->pid, (__t)->state, (int)(__t)->rt_priority)
00033
00035 static inline int task_ready(struct task_struct * task) { return (task->state == TASK_RUNNING); }
00036
00038 #define set_tsk_need_resched(task) do { task->need_resched = 1; } while (0)
00039
00041 static inline void stop_task(struct task_struct *t)
00042 {
00043 t->rt_priority = STOP_PRIORITY;
00044 }
00045
00047 static inline void dispatch_task(struct task_struct *t)
00048 {
00049 t->rt_priority = RRES_DISPATCH_PRIORITY;
00050 }
00051
00053 static inline void rres_idle_cpu(void)
00054 {
00055 set_tsk_need_resched(kal_task_current());
00056 }
00057
00058 static inline void rres_dispatch_setup(server_t *srv) {
00059
00060 }
00061
00062 #endif
00063