Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/mm/
Dmmzone.c86 int page_cpupid_xchg_last(struct page *page, int cpupid) in page_cpupid_xchg_last() argument
96 flags |= (cpupid & LAST_CPUPID_MASK) << LAST_CPUPID_PGSHIFT; in page_cpupid_xchg_last()
Dmigrate.c610 int cpupid; in migrate_page_states() local
650 cpupid = page_cpupid_xchg_last(page, -1); in migrate_page_states()
651 page_cpupid_xchg_last(newpage, cpupid); in migrate_page_states()
/kernel/linux/linux-5.10/include/linux/
Dmm.h1344 static inline int cpupid_to_pid(int cpupid) in cpupid_to_pid() argument
1346 return cpupid & LAST__PID_MASK; in cpupid_to_pid()
1349 static inline int cpupid_to_cpu(int cpupid) in cpupid_to_cpu() argument
1351 return (cpupid >> LAST__PID_SHIFT) & LAST__CPU_MASK; in cpupid_to_cpu()
1354 static inline int cpupid_to_nid(int cpupid) in cpupid_to_nid() argument
1356 return cpu_to_node(cpupid_to_cpu(cpupid)); in cpupid_to_nid()
1359 static inline bool cpupid_pid_unset(int cpupid) in cpupid_pid_unset() argument
1361 return cpupid_to_pid(cpupid) == (-1 & LAST__PID_MASK); in cpupid_pid_unset()
1364 static inline bool cpupid_cpu_unset(int cpupid) in cpupid_cpu_unset() argument
1366 return cpupid_to_cpu(cpupid) == (-1 & LAST__CPU_MASK); in cpupid_cpu_unset()
[all …]
/kernel/linux/linux-5.10/kernel/sched/
Dfair.c2513 static void task_numa_group(struct task_struct *p, int cpupid, int flags, in task_numa_group() argument
2519 int cpu = cpupid_to_cpu(cpupid); in task_numa_group()
2551 if (!cpupid_match_pid(tsk, cpupid)) in task_numa_group()