Searched refs:cpupid (Results 1 – 4 of 4) sorted by relevance
97 int folio_xchg_last_cpupid(struct folio *folio, int cpupid) in folio_xchg_last_cpupid() argument108 flags |= (cpupid & LAST_CPUPID_MASK) << LAST_CPUPID_PGSHIFT; in folio_xchg_last_cpupid()
665 int cpupid; in folio_migrate_flags() local702 cpupid = folio_xchg_last_cpupid(folio, -1); in folio_migrate_flags()713 cpupid = -1; in folio_migrate_flags()715 folio_xchg_last_cpupid(newfolio, cpupid); in folio_migrate_flags()
1664 static inline int cpupid_to_pid(int cpupid) in cpupid_to_pid() argument1666 return cpupid & LAST__PID_MASK; in cpupid_to_pid()1669 static inline int cpupid_to_cpu(int cpupid) in cpupid_to_cpu() argument1671 return (cpupid >> LAST__PID_SHIFT) & LAST__CPU_MASK; in cpupid_to_cpu()1674 static inline int cpupid_to_nid(int cpupid) in cpupid_to_nid() argument1676 return cpu_to_node(cpupid_to_cpu(cpupid)); in cpupid_to_nid()1679 static inline bool cpupid_pid_unset(int cpupid) in cpupid_pid_unset() argument1681 return cpupid_to_pid(cpupid) == (-1 & LAST__PID_MASK); in cpupid_pid_unset()1684 static inline bool cpupid_cpu_unset(int cpupid) in cpupid_cpu_unset() argument1686 return cpupid_to_cpu(cpupid) == (-1 & LAST__CPU_MASK); in cpupid_cpu_unset()[all …]
1800 static inline bool cpupid_valid(int cpupid) in cpupid_valid() argument1802 return cpupid_to_cpu(cpupid) < nr_cpu_ids; in cpupid_valid()3003 static void task_numa_group(struct task_struct *p, int cpupid, int flags, in task_numa_group() argument3009 int cpu = cpupid_to_cpu(cpupid); in task_numa_group()3039 if (!cpupid_match_pid(tsk, cpupid)) in task_numa_group()