| /linux/kernel/sched/ext/ |
| H A D | idle.c | 458 s32 scx_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, u64 wake_flags, in scx_select_cpu_dfl() argument 463 int node = scx_cpu_node_if_enabled(prev_cpu); in scx_select_cpu_dfl() 489 is_prev_allowed = cpumask_test_cpu(prev_cpu, allowed); in scx_select_cpu_dfl() 505 const struct cpumask *cpus = numa_span(prev_cpu); in scx_select_cpu_dfl() 515 const struct cpumask *cpus = llc_span(prev_cpu); in scx_select_cpu_dfl() 534 if (is_prev_allowed && cpus_share_cache(cpu, prev_cpu) && in scx_select_cpu_dfl() 535 scx_idle_test_and_clear_cpu(prev_cpu)) { in scx_select_cpu_dfl() 536 cpu = prev_cpu; in scx_select_cpu_dfl() 574 cpumask_test_cpu(prev_cpu, idle_cpumask(node)->smt) && in scx_select_cpu_dfl() 575 scx_idle_test_and_clear_cpu(prev_cpu)) { in scx_select_cpu_dfl() [all …]
|
| /linux/arch/x86/include/asm/trace/ |
| H A D | irq_vectors.h | 155 unsigned int prev_cpu), 157 TP_ARGS(irq, vector, cpu, prev_vector, prev_cpu), 164 __field( unsigned int, prev_cpu ) 172 __entry->prev_cpu = prev_cpu; 178 __entry->prev_vector, __entry->prev_cpu) 185 unsigned int prev_cpu), \ 186 TP_ARGS(irq, vector, cpu, prev_vector, prev_cpu), NULL, NULL); \
|
| /linux/tools/testing/selftests/sched_ext/ |
| H A D | allowed_cpus.bpf.c | 63 struct task_struct *p, s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 78 cpu = scx_bpf_select_cpu_and(p, prev_cpu, wake_flags, allowed, 0); in BPF_STRUCT_OPS() 86 return prev_cpu; in BPF_STRUCT_OPS() 92 s32 prev_cpu = scx_bpf_task_cpu(p), cpu; in BPF_STRUCT_OPS() local 107 cpu = scx_bpf_select_cpu_and(p, prev_cpu, 0, allowed, 0); in BPF_STRUCT_OPS()
|
| H A D | select_cpu_dispatch.bpf.c | 16 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 19 s32 cpu = prev_cpu; in BPF_STRUCT_OPS() 29 cpu = prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | enq_select_cpu_fails.bpf.c | |
| H A D | select_cpu_dfl_nodispatch.bpf.c | 31 s32 scx_bpf_select_cpu_dfl(struct task_struct *p, s32 prev_cpu, u64 wake_flags, 35 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 46 cpu = scx_bpf_select_cpu_dfl(p, prev_cpu, wake_flags, in BPF_STRUCT_OPS()
|
| H A D | select_cpu_dispatch_bad_dsq.bpf.c | 18 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 23 return prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | select_cpu_dispatch_dbl_dsp.bpf.c | 18 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 24 return prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | ddsp_bogus_dsq_fail.bpf.c | 14 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 18 cpu = prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | ddsp_vtimelocal_fail.bpf.c | 14 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 18 cpu = prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | nohz_tick.bpf.c | 19 s32 BPF_STRUCT_OPS(nohz_tick_select_cpu, struct task_struct *p, s32 prev_cpu, in BPF_STRUCT_OPS() argument 22 return prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | dequeue_iter.bpf.c | 28 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 30 return prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | dsp_local_on.bpf.c | 20 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 22 return prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | exit.bpf.c | 21 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 28 return scx_bpf_select_cpu_dfl(p, prev_cpu, wake_flags, &found); in BPF_STRUCT_OPS()
|
| H A D | select_cpu_vtime.bpf.c | 39 s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 47 cpu = prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | numa.bpf.c | 50 struct task_struct *p, s32 prev_cpu, u64 wake_flags) in BPF_STRUCT_OPS() argument 77 return prev_cpu; in BPF_STRUCT_OPS()
|
| H A D | maximal.bpf.c | 17 s32 BPF_STRUCT_OPS(maximal_select_cpu, struct task_struct *p, s32 prev_cpu, in BPF_STRUCT_OPS() argument 20 return prev_cpu; in BPF_STRUCT_OPS()
|
| /linux/arch/powerpc/lib/ |
| H A D | qspinlock.c | 261 static struct qnode *get_tail_qnode(struct qspinlock *lock, int prev_cpu) in get_tail_qnode() argument 263 struct qnodes *qnodesp = per_cpu_ptr(&qnodes, prev_cpu); in get_tail_qnode() 377 static __always_inline bool yield_to_prev(struct qspinlock *lock, struct qnode *node, int prev_cpu,… in yield_to_prev() argument 392 if (node->sleepy || vcpu_is_preempted(prev_cpu)) { in yield_to_prev() 419 yield_count = yield_count_of(prev_cpu); in yield_to_prev() 431 yield_to_preempted(prev_cpu, yield_count); in yield_to_prev() 576 int prev_cpu = decode_tail_cpu(old); in queued_spin_lock_mcs_queue() local 577 struct qnode *prev = get_tail_qnode(lock, prev_cpu); in queued_spin_lock_mcs_queue() 587 if (yield_to_prev(lock, node, prev_cpu, paravirt)) in queued_spin_lock_mcs_queue()
|
| /linux/tools/sched_ext/include/scx/ |
| H A D | compat.bpf.h | 278 s32 scx_bpf_select_cpu_and___compat(struct task_struct *p, s32 prev_cpu, u64 wake_flags, 295 scx_bpf_select_cpu_and(struct task_struct *p, s32 prev_cpu, u64 wake_flags, in scx_bpf_select_cpu_and() argument 300 .prev_cpu = prev_cpu, in scx_bpf_select_cpu_and() 307 return scx_bpf_select_cpu_and___compat(p, prev_cpu, wake_flags, in scx_bpf_select_cpu_and()
|
| /linux/arch/sparc/kernel/ |
| H A D | cpumap.c | 193 int n, id, cpu, prev_cpu, last_cpu, level; in build_cpuinfo_tree() local 204 prev_cpu = cpu = cpumask_first(cpu_online_mask); in build_cpuinfo_tree() 268 (cpu == last_cpu) ? cpu : prev_cpu; in build_cpuinfo_tree() 290 prev_cpu = cpu; in build_cpuinfo_tree()
|
| /linux/Documentation/translations/zh_CN/scheduler/ |
| H A D | sched-energy.rst | 118 依然放在之前活动的prev_cpu是否可以节省能量。 132 prev_cpu = 0(上一次运行在CPU0)。 197 **情况3. P依旧留在prev_cpu/CPU0**::
|
| /linux/arch/x86/kernel/apic/ |
| H A D | vector.c | 31 unsigned int prev_cpu; member 181 apicd->prev_cpu = apicd->cpu; in chip_data_update() 363 apicd->prev_cpu); in clear_irq_vector() 374 per_cpu(vector_irq, apicd->prev_cpu)[vector] = VECTOR_SHUTDOWN; in clear_irq_vector() 375 apic_free_vector(apicd->prev_cpu, vector, managed); in clear_irq_vector() 654 seq_printf(m, "%*sPrevious target: %5u\n", ind, "", apicd.prev_cpu); in x86_vector_debug_show() 900 unsigned int cpu = apicd->prev_cpu; in free_moved_vector() 940 if (!vector || (apicd->cpu != cpu && apicd->prev_cpu != cpu)) in apic_force_complete_move() 1094 unsigned int cpu = apicd->prev_cpu; in __vector_schedule_cleanup()
|
| /linux/arch/riscv/include/asm/ |
| H A D | switch_to.h | 100 bool thread_migrated = smp_processor_id() != task->thread.prev_cpu; in switch_to_should_flush_icache() 109 #define __set_prev_cpu(thread) ((thread).prev_cpu = smp_processor_id())
|
| /linux/tools/sched_ext/ |
| H A D | scx_cpu0.bpf.c | 43 s32 BPF_STRUCT_OPS(cpu0_select_cpu, struct task_struct *p, s32 prev_cpu, u64 wake_flags) in stat_inc() 45 BPF_STRUCT_OPS(cpu0_select_cpu,struct task_struct * p,s32 prev_cpu,u64 wake_flags) BPF_STRUCT_OPS() argument
|
| /linux/kernel/sched/ |
| H A D | fair.c | 1316 static int select_idle_sibling(struct task_struct *p, int prev_cpu, int cpu); 8574 wake_affine_idle(int this_cpu, int prev_cpu, int sync) 8582 * If the prev_cpu is idle and cache affine then avoid a migration. in set_idle_cores() 8584 * is more important than cache hot data on the prev_cpu and from in set_idle_cores() 8588 if (available_idle_cpu(this_cpu) && cpus_share_cache(this_cpu, prev_cpu)) in test_idle_cores() 8589 return available_idle_cpu(prev_cpu) ? prev_cpu : this_cpu; in test_idle_cores() 8598 if (available_idle_cpu(prev_cpu)) 8599 return prev_cpu; 8606 int this_cpu, int prev_cpu, in in __update_idle_core() 8358 wake_affine_idle(int this_cpu,int prev_cpu,int sync) wake_affine_idle() argument 8390 wake_affine_weight(struct sched_domain * sd,struct task_struct * p,int this_cpu,int prev_cpu,int sync) wake_affine_weight() argument 8432 wake_affine(struct sched_domain * sd,struct task_struct * p,int this_cpu,int prev_cpu,int sync) wake_affine() argument 8515 sched_balance_find_dst_cpu(struct sched_domain * sd,struct task_struct * p,int cpu,int prev_cpu,int sd_flag) sched_balance_find_dst_cpu() argument 9351 eenv_task_busy_time(struct energy_env * eenv,struct task_struct * p,int prev_cpu) eenv_task_busy_time() argument 9512 find_energy_efficient_cpu(struct task_struct * p,int prev_cpu) find_energy_efficient_cpu() argument 9701 select_task_rq_fair(struct task_struct * p,int prev_cpu,int wake_flags) select_task_rq_fair() argument [all...] |