mirror of
https://github.com/sched-ext/scx.git
synced 2024-12-13 20:17:18 +00:00
Compare commits
2 Commits
f97148c2d3
...
a6c2d8a79a
Author | SHA1 | Date | |
---|---|---|---|
|
a6c2d8a79a | ||
|
2f334dba85 |
@ -1264,7 +1264,6 @@ static void task_set_preferred_mempolicy_dom_mask(struct task_struct *p,
|
|||||||
{
|
{
|
||||||
u32 node_id;
|
u32 node_id;
|
||||||
u32 val = 0;
|
u32 val = 0;
|
||||||
nodemask_t *node_mask = &p->mempolicy->nodes;
|
|
||||||
void *mask;
|
void *mask;
|
||||||
|
|
||||||
taskc->preferred_dom_mask = 0;
|
taskc->preferred_dom_mask = 0;
|
||||||
@ -1286,7 +1285,7 @@ static void task_set_preferred_mempolicy_dom_mask(struct task_struct *p,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mask = BPF_CORE_READ(node_mask, bits);
|
mask = BPF_CORE_READ(p, mempolicy, nodes.bits);
|
||||||
if (bpf_core_read(&val, sizeof(val), mask))
|
if (bpf_core_read(&val, sizeof(val), mask))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user