Searched refs:this_rq (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/kernel/sched/ |
D | loadavg.c | 78 long calc_load_fold_active(struct rq *this_rq, long adjust) in calc_load_fold_active() argument 82 nr_active = this_rq->nr_running - adjust; in calc_load_fold_active() 83 nr_active += (int)this_rq->nr_uninterruptible; in calc_load_fold_active() 85 if (nr_active != this_rq->calc_load_active) { in calc_load_fold_active() 86 delta = nr_active - this_rq->calc_load_active; in calc_load_fold_active() 87 this_rq->calc_load_active = nr_active; in calc_load_fold_active() 251 calc_load_nohz_fold(this_rq()); in calc_load_nohz_start() 265 struct rq *this_rq = this_rq(); in calc_load_nohz_stop() local 270 this_rq->calc_load_update = READ_ONCE(calc_load_update); in calc_load_nohz_stop() 271 if (time_before(jiffies, this_rq->calc_load_update)) in calc_load_nohz_stop() [all …]
|
D | sched.h | 114 extern void calc_global_load_tick(struct rq *this_rq); 115 extern long calc_load_fold_active(struct rq *this_rq, long adjust); 1194 #define this_rq() this_cpu_ptr(&runqueues) macro 1679 rq = this_rq(); in this_rq_lock_irq() 2173 void (*task_woken)(struct rq *this_rq, struct task_struct *task); 2194 void (*switched_from)(struct rq *this_rq, struct task_struct *task); 2195 void (*switched_to) (struct rq *this_rq, struct task_struct *task); 2196 void (*prio_changed) (struct rq *this_rq, struct task_struct *task, 2591 static inline int _double_lock_balance(struct rq *this_rq, struct rq *busiest) in _double_lock_balance() argument 2592 __releases(this_rq->lock) in _double_lock_balance() [all …]
|
D | rt.c | 632 return this_rq()->rd->span; in sched_rt_period_mask() 2316 rq = this_rq(); in rto_push_irq_work_func() 2346 static void pull_rt_task(struct rq *this_rq) in pull_rt_task() argument 2348 int this_cpu = this_rq->cpu, cpu; in pull_rt_task() 2352 int rt_overload_count = rt_overloaded(this_rq); in pull_rt_task() 2365 cpumask_test_cpu(this_rq->cpu, this_rq->rd->rto_mask)) in pull_rt_task() 2370 tell_cpu_to_push(this_rq); in pull_rt_task() 2375 for_each_cpu(cpu, this_rq->rd->rto_mask) { in pull_rt_task() 2389 this_rq->rt.highest_prio.curr) in pull_rt_task() 2398 double_lock_balance(this_rq, src_rq); in pull_rt_task() [all …]
|
D | fair.c | 4263 static int newidle_balance(struct rq *this_rq, struct rq_flags *rf); 6696 struct rq *this_rq = this_rq(); in select_idle_cpu() local 6716 if (unlikely(this_rq->wake_stamp < now)) { in select_idle_cpu() 6717 while (this_rq->wake_stamp < now && this_rq->wake_avg_idle) { in select_idle_cpu() 6718 this_rq->wake_stamp++; in select_idle_cpu() 6719 this_rq->wake_avg_idle >>= 1; in select_idle_cpu() 6723 avg_idle = this_rq->wake_avg_idle; in select_idle_cpu() 6771 this_rq->wake_avg_idle -= min(this_rq->wake_avg_idle, time); in select_idle_cpu() 6875 this_rq()->nr_running <= 1 && in select_idle_sibling() 7186 struct root_domain *rd = this_rq()->rd; in find_energy_efficient_cpu() [all …]
|
D | deadline.c | 2381 static void pull_dl_task(struct rq *this_rq) in pull_dl_task() argument 2383 int this_cpu = this_rq->cpu, cpu; in pull_dl_task() 2389 if (likely(!dl_overloaded(this_rq))) in pull_dl_task() 2398 for_each_cpu(cpu, this_rq->rd->dlo_mask) { in pull_dl_task() 2408 if (this_rq->dl.dl_nr_running && in pull_dl_task() 2409 dl_time_before(this_rq->dl.earliest_dl.curr, in pull_dl_task() 2415 double_lock_balance(this_rq, src_rq); in pull_dl_task() 2432 dl_task_is_earliest_deadline(p, this_rq)) { in pull_dl_task() 2449 activate_task(this_rq, p, 0); in pull_dl_task() 2457 double_unlock_balance(this_rq, src_rq); in pull_dl_task() [all …]
|
D | cputime.c | 221 struct rq *rq = this_rq(); in account_idle_time() 256 steal -= this_rq()->prev_steal_time; in steal_account_process_time() 259 this_rq()->prev_steal_time += steal; in steal_account_process_time() 399 } else if (p == this_rq()->idle) { in irqtime_account_process_tick() 505 else if ((p != this_rq()->idle) || (irq_count() != HARDIRQ_OFFSET)) in account_process_tick()
|
D | membarrier.c | 234 struct rq *rq = this_rq(); in membarrier_update_current_mm()
|
D | idle.c | 19 idle_set_state(this_rq(), idle_state); in sched_idle_set_state()
|
D | core.c | 820 if (rq == this_rq()) in hrtick_start() 2222 this_rq()->nr_pinned++; in migrate_disable() 2254 this_rq()->nr_pinned--; in migrate_enable() 2382 struct rq *rq = this_rq(); in migration_cpu_stop() 2481 struct rq *lowest_rq = NULL, *rq = this_rq(); in push_cpu_stop() 3603 rq = this_rq(); in ttwu_stat() 3744 struct rq *rq = this_rq(); in sched_ttwu_pending() 5077 struct rq *rq = this_rq(); in finish_task_switch() 5818 schedstat_inc(this_rq()->sched_count); in schedule_debug() 8684 rq = this_rq(); in yield_to() [all …]
|