Searched refs:cpupid (Results 1 – 4 of 4) sorted by relevance
86 int page_cpupid_xchg_last(struct page *page, int cpupid) in page_cpupid_xchg_last() argument96 flags |= (cpupid & LAST_CPUPID_MASK) << LAST_CPUPID_PGSHIFT; in page_cpupid_xchg_last()
610 int cpupid; in migrate_page_states() local650 cpupid = page_cpupid_xchg_last(page, -1); in migrate_page_states()651 page_cpupid_xchg_last(newpage, cpupid); in migrate_page_states()
1344 static inline int cpupid_to_pid(int cpupid) in cpupid_to_pid() argument1346 return cpupid & LAST__PID_MASK; in cpupid_to_pid()1349 static inline int cpupid_to_cpu(int cpupid) in cpupid_to_cpu() argument1351 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() argument1356 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() argument1361 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() argument1366 return cpupid_to_cpu(cpupid) == (-1 & LAST__CPU_MASK); in cpupid_cpu_unset()[all …]
2513 static void task_numa_group(struct task_struct *p, int cpupid, int flags, in task_numa_group() argument2519 int cpu = cpupid_to_cpu(cpupid); in task_numa_group()2551 if (!cpupid_match_pid(tsk, cpupid)) in task_numa_group()