• Home
  • Raw
  • Download

Lines Matching refs:attr

2841 		      const struct sched_attr *attr)  in sched_dl_overflow()  argument
2843 u64 period = attr->sched_period ?: attr->sched_deadline; in sched_dl_overflow()
2844 u64 runtime = attr->sched_runtime; in sched_dl_overflow()
2850 if (attr->sched_flags & SCHED_FLAG_SUGOV) in sched_dl_overflow()
2906 void __setparam_dl(struct task_struct *p, const struct sched_attr *attr) in __setparam_dl() argument
2910 dl_se->dl_runtime = attr->sched_runtime; in __setparam_dl()
2911 dl_se->dl_deadline = attr->sched_deadline; in __setparam_dl()
2912 dl_se->dl_period = attr->sched_period ?: dl_se->dl_deadline; in __setparam_dl()
2913 dl_se->flags = attr->sched_flags & SCHED_DL_FLAGS; in __setparam_dl()
2918 void __getparam_dl(struct task_struct *p, struct sched_attr *attr) in __getparam_dl() argument
2922 attr->sched_priority = p->rt_priority; in __getparam_dl()
2923 attr->sched_runtime = dl_se->dl_runtime; in __getparam_dl()
2924 attr->sched_deadline = dl_se->dl_deadline; in __getparam_dl()
2925 attr->sched_period = dl_se->dl_period; in __getparam_dl()
2926 attr->sched_flags &= ~SCHED_DL_FLAGS; in __getparam_dl()
2927 attr->sched_flags |= dl_se->flags; in __getparam_dl()
2940 bool __checkparam_dl(const struct sched_attr *attr) in __checkparam_dl() argument
2945 if (attr->sched_flags & SCHED_FLAG_SUGOV) in __checkparam_dl()
2949 if (attr->sched_deadline == 0) in __checkparam_dl()
2956 if (attr->sched_runtime < (1ULL << DL_SCALE)) in __checkparam_dl()
2963 if (attr->sched_deadline & (1ULL << 63) || in __checkparam_dl()
2964 attr->sched_period & (1ULL << 63)) in __checkparam_dl()
2967 period = attr->sched_period; in __checkparam_dl()
2969 period = attr->sched_deadline; in __checkparam_dl()
2972 if (period < attr->sched_deadline || in __checkparam_dl()
2973 attr->sched_deadline < attr->sched_runtime) in __checkparam_dl()
3009 bool dl_param_changed(struct task_struct *p, const struct sched_attr *attr) in dl_param_changed() argument
3013 if (dl_se->dl_runtime != attr->sched_runtime || in dl_param_changed()
3014 dl_se->dl_deadline != attr->sched_deadline || in dl_param_changed()
3015 dl_se->dl_period != attr->sched_period || in dl_param_changed()
3016 dl_se->flags != (attr->sched_flags & SCHED_DL_FLAGS)) in dl_param_changed()