Home
last modified time | relevance | path

Searched refs:nid (Results 1 – 2 of 2) sorted by relevance

/kernel/sched/
Dfair.c926 static inline int task_faults_idx(int nid, int priv) in task_faults_idx() argument
928 return NR_NUMA_HINT_FAULT_TYPES * nid + priv; in task_faults_idx()
931 static inline unsigned long task_faults(struct task_struct *p, int nid) in task_faults() argument
936 return p->numa_faults_memory[task_faults_idx(nid, 0)] + in task_faults()
937 p->numa_faults_memory[task_faults_idx(nid, 1)]; in task_faults()
940 static inline unsigned long group_faults(struct task_struct *p, int nid) in group_faults() argument
945 return p->numa_group->faults[task_faults_idx(nid, 0)] + in group_faults()
946 p->numa_group->faults[task_faults_idx(nid, 1)]; in group_faults()
949 static inline unsigned long group_faults_cpu(struct numa_group *group, int nid) in group_faults_cpu() argument
951 return group->faults_cpu[task_faults_idx(nid, 0)] + in group_faults_cpu()
[all …]
Dcore.c1543 int nid = cpu_to_node(cpu); in select_fallback_rq() local
1553 if (nid != -1) { in select_fallback_rq()
1554 nodemask = cpumask_of_node(nid); in select_fallback_rq()
5109 void sched_setnuma(struct task_struct *p, int nid) in sched_setnuma() argument
5124 p->numa_preferred_nid = nid; in sched_setnuma()