Home
last modified time | relevance | path

Searched refs:this_rq (Results 1 – 11 of 11) sorted by relevance

/linux/kernel/sched/
H A Dloadavg.c80 long calc_load_fold_active(struct rq *this_rq, long adjust) in calc_load_fold_active() argument
84 nr_active = this_rq->nr_running - adjust; in calc_load_fold_active()
85 nr_active += (long)this_rq->nr_uninterruptible; in calc_load_fold_active()
87 if (nr_active != this_rq->calc_load_active) { in calc_load_fold_active()
88 delta = nr_active - this_rq->calc_load_active; in calc_load_fold_active()
89 this_rq->calc_load_active = nr_active; in calc_load_fold_active()
253 calc_load_nohz_fold(this_rq()); in calc_load_nohz_start()
267 struct rq *this_rq = this_rq(); in calc_load_nohz_stop() local
272 this_rq->calc_load_update = READ_ONCE(calc_load_update); in calc_load_nohz_stop()
273 if (time_before(jiffies, this_rq->calc_load_update)) in calc_load_nohz_stop()
[all …]
H A Dsched.h107 extern void calc_global_load_tick(struct rq *this_rq);
108 extern long calc_load_fold_active(struct rq *this_rq, long adjust);
1400 #define this_rq() __this_rq() macro
2023 rq = this_rq(); in _this_rq_lock_irq()
2604 void (*task_woken)(struct rq *this_rq, struct task_struct *task);
2640 void (*switching_from)(struct rq *this_rq, struct task_struct *task);
2641 void (*switched_from) (struct rq *this_rq, struct task_struct *task);
2642 void (*switching_to) (struct rq *this_rq, struct task_struct *task);
2643 void (*switched_to) (struct rq *this_rq, struct task_struct *task);
2644 u64 (*get_prio) (struct rq *this_rq, struct task_struct *task);
[all …]
H A Dext.c1250 rq = this_rq(); in schedule_dsq_reenq()
2413 static bool consume_remote_task(struct rq *this_rq, in consume_remote_task() argument
2417 raw_spin_rq_unlock(this_rq); in consume_remote_task()
2420 move_remote_task_to_local_dsq(p, enq_flags, src_rq, this_rq); in consume_remote_task()
2424 raw_spin_rq_lock(this_rq); in consume_remote_task()
2728 dsq = find_dsq_for_dispatch(sch, this_rq(), dsq_id, task_cpu(p)); in finish_dispatch()
3325 this_rq()->scx.in_select_cpu = true; in select_task_rq_scx()
3327 this_rq()->scx.in_select_cpu = false; in select_task_rq_scx()
7812 static bool kick_one_cpu(s32 cpu, struct rq *this_rq, unsigned long *ksyncs) in kick_one_cpu() argument
7815 struct scx_rq *this_scx = &this_rq->scx; in kick_one_cpu()
[all …]
H A Dfair.c5061 static int sched_balance_newidle(struct rq *this_rq, struct rq_flags *rf)
5062 __must_hold(__rq_lockp(this_rq));
6377 if (rq == this_rq()) { in __unthrottle_cfs_rq_async()
8144 this_rq()->nr_running <= 1 && in select_idle_sibling()
8646 struct root_domain *rd = this_rq()->rd; in find_energy_efficient_cpu()
8850 if (!is_rd_overutilized(this_rq()->rd)) { in select_task_rq_fair()
12101 static int sched_balance_rq(int this_cpu, struct rq *this_rq, in sched_balance_rq() argument
12114 .dst_rq = this_rq, in sched_balance_rq()
12886 WARN_ON_ONCE(rq != this_rq()); in nohz_balance_exit_idle()
12992 static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags) in _nohz_idle_balance() argument
[all …]
H A Ddeadline.c3001 static void pull_dl_task(struct rq *this_rq) in pull_dl_task() argument
3003 int this_cpu = this_rq->cpu, cpu; in pull_dl_task()
3009 if (likely(!dl_overloaded(this_rq))) in pull_dl_task()
3018 for_each_cpu(cpu, this_rq->rd->dlo_mask) { in pull_dl_task()
3028 if (this_rq->dl.dl_nr_running && in pull_dl_task()
3029 dl_time_before(this_rq->dl.earliest_dl.curr, in pull_dl_task()
3035 double_lock_balance(this_rq, src_rq); in pull_dl_task()
3052 dl_task_is_earliest_deadline(p, this_rq)) { in pull_dl_task()
3067 move_queued_task_locked(src_rq, this_rq, p); in pull_dl_task()
3075 double_unlock_balance(this_rq, src_rq); in pull_dl_task()
[all …]
H A Didle.c24 idle_set_state(this_rq(), idle_state); in sched_idle_set_state()
H A Dmembarrier.c249 struct rq *rq = this_rq(); in membarrier_update_current_mm()
H A Dcore.c969 if (rq == this_rq()) in hrtick_start()
2576 struct rq *rq = this_rq(); in migration_cpu_stop()
2687 struct rq *lowest_rq = NULL, *rq = this_rq(); in push_cpu_stop()
3654 rq = this_rq(); in ttwu_stat()
3795 struct rq *rq = this_rq(); in sched_ttwu_pending()
5093 __acquires(__rq_lockp(this_rq())) in prepare_lock_switch()
5111 __acquire(__rq_lockp(this_rq())); in prepare_lock_switch()
5203 __releases(__rq_lockp(this_rq())) in finish_task_switch()
5205 struct rq *rq = this_rq(); in finish_task_switch()
5299 __releases(__rq_lockp(this_rq())) in schedule_tail()
[all …]
H A Dext_idle.c940 if (this_rq()->scx.in_select_cpu) { in select_cpu_from_kfunc()
H A Dsyscalls.c1417 rq = this_rq(); in yield_to()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_access_variable_array.c