Lines Matching refs:task_struct
476 static bool set_nr_and_not_polling(struct task_struct *p) in set_nr_and_not_polling()
488 static bool set_nr_if_polling(struct task_struct *p) in set_nr_if_polling()
507 static bool set_nr_and_not_polling(struct task_struct *p) in set_nr_and_not_polling()
514 static bool set_nr_if_polling(struct task_struct *p) in set_nr_if_polling()
521 void wake_q_add(struct wake_q_head *head, struct task_struct *task) in wake_q_add()
550 struct task_struct *task; in wake_up_q()
552 task = container_of(node, struct task_struct, wake_q); in wake_up_q()
576 struct task_struct *curr = rq->curr; in resched_curr()
812 static void set_load_weight(struct task_struct *p) in set_load_weight()
830 static inline void enqueue_task(struct rq *rq, struct task_struct *p, int flags) in enqueue_task()
838 static inline void dequeue_task(struct rq *rq, struct task_struct *p, int flags) in dequeue_task()
846 void activate_task(struct rq *rq, struct task_struct *p, int flags) in activate_task()
854 void deactivate_task(struct rq *rq, struct task_struct *p, int flags) in deactivate_task()
916 void sched_set_stop_task(int cpu, struct task_struct *stop) in sched_set_stop_task()
919 struct task_struct *old_stop = cpu_rq(cpu)->stop; in sched_set_stop_task()
949 static inline int __normal_prio(struct task_struct *p) in __normal_prio()
961 static inline int normal_prio(struct task_struct *p) in normal_prio()
981 static int effective_prio(struct task_struct *p) in effective_prio()
1000 inline int task_curr(const struct task_struct *p) in task_curr()
1012 static inline void check_class_changed(struct rq *rq, struct task_struct *p, in check_class_changed()
1025 void check_preempt_curr(struct rq *rq, struct task_struct *p, int flags) in check_preempt_curr()
1070 static struct rq *move_queued_task(struct rq *rq, struct task_struct *p, int new_cpu) in move_queued_task()
1091 struct task_struct *task;
1104 static struct rq *__migrate_task(struct rq *rq, struct task_struct *p, int dest_cpu) in __migrate_task()
1126 struct task_struct *p = arg->task; in migration_cpu_stop()
1161 void set_cpus_allowed_common(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_common()
1167 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed()
1205 static int __set_cpus_allowed_ptr(struct task_struct *p, in __set_cpus_allowed_ptr()
1261 int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_ptr()
1267 void set_task_cpu(struct task_struct *p, unsigned int new_cpu) in set_task_cpu()
1305 static void __migrate_swap_task(struct task_struct *p, int cpu) in __migrate_swap_task()
1328 struct task_struct *src_task, *dst_task;
1376 int migrate_swap(struct task_struct *cur, struct task_struct *p) in migrate_swap()
1427 unsigned long wait_task_inactive(struct task_struct *p, long match_state) in wait_task_inactive()
1532 void kick_process(struct task_struct *p) in kick_process()
1547 static int select_fallback_rq(int cpu, struct task_struct *p) in select_fallback_rq()
1623 int select_task_rq(struct task_struct *p, int cpu, int sd_flags, int wake_flags) in select_task_rq()
1655 static inline int __set_cpus_allowed_ptr(struct task_struct *p, in __set_cpus_allowed_ptr()
1664 ttwu_stat(struct task_struct *p, int cpu, int wake_flags) in ttwu_stat()
1703 static inline void ttwu_activate(struct rq *rq, struct task_struct *p, int en_flags) in ttwu_activate()
1717 ttwu_do_wakeup(struct rq *rq, struct task_struct *p, int wake_flags) in ttwu_do_wakeup()
1749 ttwu_do_activate(struct rq *rq, struct task_struct *p, int wake_flags) in ttwu_do_activate()
1768 static int ttwu_remote(struct task_struct *p, int wake_flags) in ttwu_remote()
1790 struct task_struct *p; in sched_ttwu_pending()
1800 p = llist_entry(llist, struct task_struct, wake_entry); in sched_ttwu_pending()
1847 static void ttwu_queue_remote(struct task_struct *p, int cpu) in ttwu_queue_remote()
1889 static void ttwu_queue(struct task_struct *p, int cpu) in ttwu_queue()
1924 try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags) in try_to_wake_up()
2015 static void try_to_wake_up_local(struct task_struct *p) in try_to_wake_up_local()
2065 int wake_up_process(struct task_struct *p) in wake_up_process()
2071 int wake_up_state(struct task_struct *p, unsigned int state) in wake_up_state()
2079 void __dl_clear_params(struct task_struct *p) in __dl_clear_params()
2100 static void __sched_fork(unsigned long clone_flags, struct task_struct *p) in __sched_fork()
2187 int sched_fork(unsigned long clone_flags, struct task_struct *p) in sched_fork()
2325 static int dl_overflow(struct task_struct *p, int policy, in dl_overflow()
2372 void wake_up_new_task(struct task_struct *p) in wake_up_new_task()
2449 static void __fire_sched_in_preempt_notifiers(struct task_struct *curr) in __fire_sched_in_preempt_notifiers()
2457 static __always_inline void fire_sched_in_preempt_notifiers(struct task_struct *curr) in fire_sched_in_preempt_notifiers()
2464 __fire_sched_out_preempt_notifiers(struct task_struct *curr, in __fire_sched_out_preempt_notifiers()
2465 struct task_struct *next) in __fire_sched_out_preempt_notifiers()
2474 fire_sched_out_preempt_notifiers(struct task_struct *curr, in fire_sched_out_preempt_notifiers()
2475 struct task_struct *next) in fire_sched_out_preempt_notifiers()
2483 static inline void fire_sched_in_preempt_notifiers(struct task_struct *curr) in fire_sched_in_preempt_notifiers()
2488 fire_sched_out_preempt_notifiers(struct task_struct *curr, in fire_sched_out_preempt_notifiers()
2489 struct task_struct *next) in fire_sched_out_preempt_notifiers()
2509 prepare_task_switch(struct rq *rq, struct task_struct *prev, in prepare_task_switch()
2510 struct task_struct *next) in prepare_task_switch()
2538 static struct rq *finish_task_switch(struct task_struct *prev) in finish_task_switch()
2640 asmlinkage __visible void schedule_tail(struct task_struct *prev) in schedule_tail()
2666 context_switch(struct rq *rq, struct task_struct *prev, in context_switch()
2667 struct task_struct *next) in context_switch()
2786 struct task_struct *p = current; in sched_exec()
2819 unsigned long long task_sched_runtime(struct task_struct *p) in task_sched_runtime()
2865 struct task_struct *curr = rq->curr; in scheduler_tick()
2982 static noinline void __schedule_bug(struct task_struct *prev) in __schedule_bug()
3008 static inline void schedule_debug(struct task_struct *prev) in schedule_debug()
3029 static inline struct task_struct *
3030 pick_next_task(struct rq *rq, struct task_struct *prev) in pick_next_task()
3033 struct task_struct *p; in pick_next_task()
3106 struct task_struct *prev, *next; in __schedule()
3157 struct task_struct *to_wakeup; in __schedule()
3191 static inline void sched_submit_work(struct task_struct *tsk) in sched_submit_work()
3205 struct task_struct *tsk = current; in schedule()
3366 void rt_mutex_setprio(struct task_struct *p, int prio) in rt_mutex_setprio()
3414 struct task_struct *pi_task = rt_mutex_get_top_task(p); in rt_mutex_setprio()
3453 void set_user_nice(struct task_struct *p, long nice) in set_user_nice()
3505 int can_nice(const struct task_struct *p, const int nice) in can_nice()
3557 int task_prio(const struct task_struct *p) in task_prio()
3592 struct task_struct *idle_task(int cpu) in idle_task()
3603 static struct task_struct *find_process_by_pid(pid_t pid) in find_process_by_pid()
3617 __setparam_dl(struct task_struct *p, const struct sched_attr *attr) in __setparam_dl()
3654 static void __setscheduler_params(struct task_struct *p, in __setscheduler_params()
3680 static void __setscheduler(struct rq *rq, struct task_struct *p, in __setscheduler()
3703 __getparam_dl(struct task_struct *p, struct sched_attr *attr) in __getparam_dl()
3758 static bool check_same_owner(struct task_struct *p) in check_same_owner()
3771 static bool dl_param_changed(struct task_struct *p, in dl_param_changed()
3785 static int __sched_setscheduler(struct task_struct *p, in __sched_setscheduler()
4026 static int _sched_setscheduler(struct task_struct *p, int policy, in _sched_setscheduler()
4054 int sched_setscheduler(struct task_struct *p, int policy, in sched_setscheduler()
4061 int sched_setattr(struct task_struct *p, const struct sched_attr *attr) in sched_setattr()
4080 int sched_setscheduler_nocheck(struct task_struct *p, int policy, in sched_setscheduler_nocheck()
4091 struct task_struct *p; in do_sched_setscheduler()
4220 struct task_struct *p; in SYSCALL_DEFINE3()
4252 struct task_struct *p; in SYSCALL_DEFINE1()
4282 struct task_struct *p; in SYSCALL_DEFINE2()
4363 struct task_struct *p; in SYSCALL_DEFINE4()
4403 struct task_struct *p; in sched_setaffinity()
4526 struct task_struct *p; in sched_getaffinity()
4712 int __sched yield_to(struct task_struct *p, bool preempt) in yield_to()
4714 struct task_struct *curr = current; in yield_to()
4863 struct task_struct *p; in SYSCALL_DEFINE2()
4901 void sched_show_task(struct task_struct *p) in sched_show_task()
4940 struct task_struct *g, *p; in show_state_filter()
4973 void init_idle_bootup_task(struct task_struct *idle) in init_idle_bootup_task()
4986 void init_idle(struct task_struct *idle, int cpu) in init_idle()
5067 int task_can_attach(struct task_struct *p, in task_can_attach()
5125 int migrate_task_to(struct task_struct *p, int target_cpu) in migrate_task_to()
5146 void sched_setnuma(struct task_struct *p, int nid) in sched_setnuma()
5203 static void put_prev_task_fake(struct rq *rq, struct task_struct *prev) in put_prev_task_fake()
5211 static struct task_struct fake_task = {
5230 struct task_struct *next, *stop = rq->stop; in migrate_tasks()
7607 struct task_struct *g, *p; in normalize_rt_tasks()
7663 struct task_struct *curr_task(int cpu) in curr_task()
7686 void set_curr_task(int cpu, struct task_struct *p) in set_curr_task()
7775 void sched_move_task(struct task_struct *tsk) in sched_move_task()
7827 struct task_struct *g, *p; in tg_has_rt_tasks()
8021 static int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk) in sched_rt_can_attach()
8235 static void cpu_cgroup_fork(struct task_struct *task, void *private) in cpu_cgroup_fork()
8242 struct task_struct *task; in cpu_cgroup_can_attach()
8260 struct task_struct *task; in cpu_cgroup_attach()