| /linux/kernel/sched/ |
| H A D | loadavg.c | 80 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 D | sched.h | 104 extern void calc_global_load_tick(struct rq *this_rq); 105 extern long calc_load_fold_active(struct rq *this_rq, long adjust); 1362 #define this_rq() this_cpu_ptr(&runqueues) macro 1931 rq = this_rq(); in this_rq_lock_irq() 2520 void (*task_woken)(struct rq *this_rq, struct task_struct *task); 2556 void (*switching_from)(struct rq *this_rq, struct task_struct *task); 2557 void (*switched_from) (struct rq *this_rq, struct task_struct *task); 2558 void (*switching_to) (struct rq *this_rq, struct task_struct *task); 2559 void (*switched_to) (struct rq *this_rq, struct task_struct *task); 2560 u64 (*get_prio) (struct rq *this_rq, struct task_struct *task); [all …]
|
| H A D | rt.c | 583 return this_rq()->rd->span; in sched_rt_period_mask() 2199 rq = this_rq(); in rto_push_irq_work_func() 2229 static void pull_rt_task(struct rq *this_rq) in pull_rt_task() argument 2231 int this_cpu = this_rq->cpu, cpu; in pull_rt_task() 2235 int rt_overload_count = rt_overloaded(this_rq); in pull_rt_task() 2248 cpumask_test_cpu(this_rq->cpu, this_rq->rd->rto_mask)) in pull_rt_task() 2253 tell_cpu_to_push(this_rq); in pull_rt_task() 2258 for_each_cpu(cpu, this_rq->rd->rto_mask) { in pull_rt_task() 2272 this_rq->rt.highest_prio.curr) in pull_rt_task() 2281 double_lock_balance(this_rq, src_rq); in pull_rt_task() [all …]
|
| H A D | ext.c | 1802 static bool consume_remote_task(struct rq *this_rq, struct task_struct *p, in consume_remote_task() argument 1805 raw_spin_rq_unlock(this_rq); in consume_remote_task() 1808 move_remote_task_to_local_dsq(p, 0, src_rq, this_rq); in consume_remote_task() 1812 raw_spin_rq_lock(this_rq); in consume_remote_task() 2109 dsq = find_dsq_for_dispatch(sch, this_rq(), dsq_id, p); in finish_dispatch() 5441 static bool kick_one_cpu(s32 cpu, struct rq *this_rq, unsigned long *ksyncs) in kick_one_cpu() argument 5444 struct scx_rq *this_scx = &this_rq->scx; in kick_one_cpu() 5458 if ((cpu_online(cpu) || cpu == cpu_of(this_rq)) && in kick_one_cpu() 5486 static void kick_one_cpu_if_idle(s32 cpu, struct rq *this_rq) in kick_one_cpu_if_idle() argument 5494 (cpu_online(cpu) || cpu == cpu_of(this_rq))) in kick_one_cpu_if_idle() [all …]
|
| H A D | fair.c | 4784 static int sched_balance_newidle(struct rq *this_rq, struct rq_flags *rf); 6076 if (rq == this_rq()) { in __unthrottle_cfs_rq_async() 7825 this_rq()->nr_running <= 1 && in select_idle_sibling() 8327 struct root_domain *rd = this_rq()->rd; in find_energy_efficient_cpu() 8540 if (!is_rd_overutilized(this_rq()->rd)) { in select_task_rq_fair() 11810 static int sched_balance_rq(int this_cpu, struct rq *this_rq, in sched_balance_rq() argument 11823 .dst_rq = this_rq, in sched_balance_rq() 12563 WARN_ON_ONCE(rq != this_rq()); in nohz_balance_exit_idle() 12671 static void _nohz_idle_balance(struct rq *this_rq, unsigned int flags) in _nohz_idle_balance() argument 12678 int this_cpu = this_rq->cpu; in _nohz_idle_balance() [all …]
|
| H A D | deadline.c | 2952 static void pull_dl_task(struct rq *this_rq) in pull_dl_task() argument 2954 int this_cpu = this_rq->cpu, cpu; in pull_dl_task() 2960 if (likely(!dl_overloaded(this_rq))) in pull_dl_task() 2969 for_each_cpu(cpu, this_rq->rd->dlo_mask) { in pull_dl_task() 2979 if (this_rq->dl.dl_nr_running && in pull_dl_task() 2980 dl_time_before(this_rq->dl.earliest_dl.curr, in pull_dl_task() 2986 double_lock_balance(this_rq, src_rq); in pull_dl_task() 3003 dl_task_is_earliest_deadline(p, this_rq)) { in pull_dl_task() 3018 move_queued_task_locked(src_rq, this_rq, p); in pull_dl_task() 3026 double_unlock_balance(this_rq, src_rq); in pull_dl_task() [all …]
|
| H A D | idle.c | 24 idle_set_state(this_rq(), idle_state); in sched_idle_set_state()
|
| H A D | core.c | 925 if (rq == this_rq()) in hrtick_start() 2500 struct rq *rq = this_rq(); in migration_cpu_stop() 2605 struct rq *lowest_rq = NULL, *rq = this_rq(); in push_cpu_stop() 3572 rq = this_rq(); in ttwu_stat() 3713 struct rq *rq = this_rq(); in sched_ttwu_pending() 5074 struct rq *rq = this_rq(); in finish_task_switch() 5840 schedstat_inc(this_rq()->sched_count); in schedule_debug() 8041 struct rq *rq = this_rq(); in __balance_push_cpu_stop() 8083 if (!cpu_dying(rq->cpu) || rq != this_rq()) in balance_push() 8154 struct rq *rq = this_rq(); in balance_hotplug_wait()
|
| H A D | syscalls.c | 1409 rq = this_rq(); in yield_to()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_access_variable_array.c | 11 int BPF_PROG(fentry_fentry, int this_cpu, struct rq *this_rq, in BPF_PROG() argument
|