Home
last modified time | relevance | path

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

/linux-6.12.1/mm/
Dmmzone.c97 int folio_xchg_last_cpupid(struct folio *folio, int cpupid) in folio_xchg_last_cpupid() argument
108 flags |= (cpupid & LAST_CPUPID_MASK) << LAST_CPUPID_PGSHIFT; in folio_xchg_last_cpupid()
Dmigrate.c665 int cpupid; in folio_migrate_flags() local
702 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()
/linux-6.12.1/include/linux/
Dmm.h1664 static inline int cpupid_to_pid(int cpupid) in cpupid_to_pid() argument
1666 return cpupid & LAST__PID_MASK; in cpupid_to_pid()
1669 static inline int cpupid_to_cpu(int cpupid) in cpupid_to_cpu() argument
1671 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() argument
1676 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() argument
1681 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() argument
1686 return cpupid_to_cpu(cpupid) == (-1 & LAST__CPU_MASK); in cpupid_cpu_unset()
[all …]
/linux-6.12.1/kernel/sched/
Dfair.c1800 static inline bool cpupid_valid(int cpupid) in cpupid_valid() argument
1802 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() argument
3009 int cpu = cpupid_to_cpu(cpupid); in task_numa_group()
3039 if (!cpupid_match_pid(tsk, cpupid)) in task_numa_group()