Home
last modified time | relevance | path

Searched refs:pcpu_cid (Results 1 – 3 of 3) sorted by relevance

/linux/include/linux/
H A Dmm_types.h848 struct mm_cid __percpu *pcpu_cid; member
1189 struct mm_cid *pcpu_cid = per_cpu_ptr(mm->pcpu_cid, i); in mm_init_cid() local
1191 pcpu_cid->cid = MM_CID_UNSET; in mm_init_cid()
1192 pcpu_cid->time = 0; in mm_init_cid()
1199 mm->pcpu_cid = alloc_percpu_noprof(struct mm_cid); in mm_alloc_cid_noprof()
1200 if (!mm->pcpu_cid) in mm_alloc_cid_noprof()
1209 free_percpu(mm->pcpu_cid); in mm_destroy_cid()
1210 mm->pcpu_cid = NULL; in mm_destroy_cid()
/linux/kernel/sched/
H A Dsched.h3590 struct mm_cid __percpu *pcpu_cid = mm->pcpu_cid; in mm_cid_put_lazy() local
3594 cid = __this_cpu_read(pcpu_cid->cid); in mm_cid_put_lazy()
3596 !try_cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, &cid, MM_CID_UNSET)) in mm_cid_put_lazy()
3603 struct mm_cid __percpu *pcpu_cid = mm->pcpu_cid; in mm_cid_pcpu_unset() local
3607 cid = __this_cpu_read(pcpu_cid->cid); in mm_cid_pcpu_unset()
3614 res = cmpxchg(&this_cpu_ptr(pcpu_cid)->cid, cid, MM_CID_UNSET); in mm_cid_pcpu_unset()
3662 struct mm_cid *pcpu_cid = per_cpu_ptr(mm->pcpu_cid, cpu_of(rq)); in mm_cid_snapshot_time() local
3665 WRITE_ONCE(pcpu_cid->time, rq->clock); in mm_cid_snapshot_time()
3723 struct mm_cid __percpu *pcpu_cid = mm->pcpu_cid; in mm_cid_get() local
3729 cid = __this_cpu_read(pcpu_cid->cid); in mm_cid_get()
[all …]
H A Dcore.c10294 dst_pcpu_cid = per_cpu_ptr(mm->pcpu_cid, cpu_of(dst_rq)); in sched_mm_cid_migrate_to()
10299 src_pcpu_cid = per_cpu_ptr(mm->pcpu_cid, src_cpu); in sched_mm_cid_migrate_to()
10317 static void sched_mm_cid_remote_clear(struct mm_struct *mm, struct mm_cid *pcpu_cid, in sched_mm_cid_remote_clear() argument
10324 cid = READ_ONCE(pcpu_cid->cid); in sched_mm_cid_remote_clear()
10335 if (!try_cmpxchg(&pcpu_cid->cid, &cid, lazy_cid)) in sched_mm_cid_remote_clear()
10368 if (try_cmpxchg(&pcpu_cid->cid, &lazy_cid, MM_CID_UNSET)) in sched_mm_cid_remote_clear()
10376 struct mm_cid *pcpu_cid; in sched_mm_cid_remote_clear_old() local
10385 pcpu_cid = per_cpu_ptr(mm->pcpu_cid, cpu); in sched_mm_cid_remote_clear_old()
10395 WRITE_ONCE(pcpu_cid->time, rq_clock); in sched_mm_cid_remote_clear_old()
10400 if (rq_clock < pcpu_cid->time + SCHED_MM_CID_PERIOD_NS) in sched_mm_cid_remote_clear_old()
[all …]