Home
last modified time | relevance | path

Searched refs:cpupid (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/mm/
Dmmzone.c96 int page_cpupid_xchg_last(struct page *page, int cpupid) in page_cpupid_xchg_last() argument
107 flags |= (cpupid & LAST_CPUPID_MASK) << LAST_CPUPID_PGSHIFT; in page_cpupid_xchg_last()
Dmigrate.c552 int cpupid; in folio_migrate_flags() local
591 cpupid = page_cpupid_xchg_last(&folio->page, -1); in folio_migrate_flags()
602 cpupid = -1; in folio_migrate_flags()
604 page_cpupid_xchg_last(&newfolio->page, cpupid); in folio_migrate_flags()
/Linux-v6.6/include/linux/
Dmm.h1657 static inline int cpupid_to_pid(int cpupid) in cpupid_to_pid() argument
1659 return cpupid & LAST__PID_MASK; in cpupid_to_pid()
1662 static inline int cpupid_to_cpu(int cpupid) in cpupid_to_cpu() argument
1664 return (cpupid >> LAST__PID_SHIFT) & LAST__CPU_MASK; in cpupid_to_cpu()
1667 static inline int cpupid_to_nid(int cpupid) in cpupid_to_nid() argument
1669 return cpu_to_node(cpupid_to_cpu(cpupid)); in cpupid_to_nid()
1672 static inline bool cpupid_pid_unset(int cpupid) in cpupid_pid_unset() argument
1674 return cpupid_to_pid(cpupid) == (-1 & LAST__PID_MASK); in cpupid_pid_unset()
1677 static inline bool cpupid_cpu_unset(int cpupid) in cpupid_cpu_unset() argument
1679 return cpupid_to_cpu(cpupid) == (-1 & LAST__CPU_MASK); in cpupid_cpu_unset()
[all …]
/Linux-v6.6/kernel/sched/
Dfair.c1732 static inline bool cpupid_valid(int cpupid) in cpupid_valid() argument
1734 return cpupid_to_cpu(cpupid) < nr_cpu_ids; in cpupid_valid()
2942 static void task_numa_group(struct task_struct *p, int cpupid, int flags, in task_numa_group() argument
2948 int cpu = cpupid_to_cpu(cpupid); in task_numa_group()
2978 if (!cpupid_match_pid(tsk, cpupid)) in task_numa_group()