Home
last modified time | relevance | path

Searched refs:on_cpu (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c59 return sprintf(buf, "%d\n", hisi_pmu->on_cpu); in hisi_cpumask_sysfs_show()
160 if (hisi_pmu->on_cpu == -1) in hisi_uncore_pmu_event_init()
171 event->cpu = hisi_pmu->on_cpu; in hisi_uncore_pmu_event_init()
394 if (hisi_pmu->on_cpu != -1) in hisi_uncore_pmu_online_cpu()
398 hisi_pmu->on_cpu = cpu; in hisi_uncore_pmu_online_cpu()
417 if (hisi_pmu->on_cpu != cpu) in hisi_uncore_pmu_offline_cpu()
421 hisi_pmu->on_cpu = -1; in hisi_uncore_pmu_offline_cpu()
432 hisi_pmu->on_cpu = target; in hisi_uncore_pmu_offline_cpu()
Dhisi_uncore_pmu.h64 int on_cpu; member
Dhisi_uncore_ddrc_pmu.c351 ddrc_pmu->on_cpu = -1; in hisi_ddrc_pmu_dev_probe()
Dhisi_uncore_hha_pmu.c362 hha_pmu->on_cpu = -1; in hisi_hha_pmu_dev_probe()
Dhisi_uncore_l3c_pmu.c352 l3c_pmu->on_cpu = -1; in hisi_l3c_pmu_dev_probe()
/Linux-v5.4/drivers/perf/
Dqcom_l2_pmu.c186 int on_cpu; member
540 (cluster->on_cpu != event->group_leader->cpu)) { in l2_cache_event_init()
578 event->cpu = cluster->on_cpu; in l2_cache_event_init()
830 if (cluster->on_cpu != -1) in l2cache_pmu_online_cpu()
837 cluster->on_cpu = cpu; in l2cache_pmu_online_cpu()
860 if (cluster->on_cpu != cpu) in l2cache_pmu_offline_cpu()
865 cluster->on_cpu = -1; in l2cache_pmu_offline_cpu()
877 cluster->on_cpu = target; in l2cache_pmu_offline_cpu()
918 cluster->on_cpu = -1; in l2_cache_pmu_probe_cluster()
Darm_smmuv3_pmu.c107 unsigned int on_cpu; member
397 event->cpu = smmu_pmu->on_cpu; in smmu_pmu_event_init()
483 return cpumap_print_to_pagebuf(true, buf, cpumask_of(smmu_pmu->on_cpu)); in smmu_pmu_cpumask_show()
591 if (cpu != smmu_pmu->on_cpu) in smmu_pmu_offline_cpu()
599 smmu_pmu->on_cpu = target; in smmu_pmu_offline_cpu()
809 smmu_pmu->on_cpu = raw_smp_processor_id(); in smmu_pmu_probe()
811 cpumask_of(smmu_pmu->on_cpu))); in smmu_pmu_probe()
/Linux-v5.4/arch/x86/include/asm/
Dunwind.h120 return task != current && task->on_cpu; in task_on_another_cpu()
/Linux-v5.4/kernel/locking/
Dmutex.c568 if (!owner->on_cpu || need_resched() || in mutex_spin_on_owner()
605 retval = owner->on_cpu && !vcpu_is_preempted(task_cpu(owner)); in mutex_can_spin_on_owner()
Drwsem.c653 return owner->on_cpu && !vcpu_is_preempted(task_cpu(owner)); in owner_on_cpu()
/Linux-v5.4/kernel/sched/
Dcore.c2617 smp_cond_load_acquire(&p->on_cpu, !VAL); in try_to_wake_up()
2910 p->on_cpu = 0; in sched_fork()
3077 next->on_cpu = 1; in prepare_task()
3094 smp_store_release(&prev->on_cpu, 0); in finish_task()
3564 if (!p->on_cpu || !task_on_rq_queued(p)) in task_sched_runtime()
6060 idle->on_cpu = 1; in init_idle()
Dsched.h1625 return p->on_cpu; in task_running()
Dfair.c1095 (lockdep_is_held(&task_rq(p)->lock) && !READ_ONCE(p->on_cpu))); in deref_task_numa_group()
/Linux-v5.4/include/linux/
Dsched.h649 int on_cpu; member
/Linux-v5.4/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c2191 if (mask && t->on_cpu) in rdt_move_group_tasks()