00001
00015 #ifndef __DISPATCH_SIG_H__
00016 #define __DISPATCH_SIG_H__
00017
00018 #include "rres_config.h"
00019 #include <linux/sched.h>
00020 #include <linux/aquosa/qos_debug.h>
00021
00023 static inline int task_ready(struct task_struct * task) {
00024 return (task->state == TASK_RUNNING);
00025 }
00026
00027 #define rres_init_sched_param(task) \
00028 // set_task_rr_prio(task, RRES_DISPATCH_PRIORITY)
00029
00030 #define rres_task_sched_default(task) \
00031 // set_task_rr_prio(task, -1)
00032
00033 #define SCHED_OTHER SCHED_NORMAL
00034
00036 static inline void stop_task(struct task_struct *t) {
00037
00038 force_sig(SIGSTOP, t);
00039 }
00040
00042 static inline void dispatch_task(struct task_struct *t) {
00043
00044 force_sig(SIGCONT, t);
00045 }
00046
00047 #endif
00048