Skip to content

Commit

Permalink
scx_fair: use cast_mask() from common.bpf.h
Browse files Browse the repository at this point in the history
Commit 61cb3f7 ("scx_common_bpf: Append cast_mask()") moved cast_mask()
to common.bpf.h, so we don't need to redefine it in scx_fair.

Signed-off-by: Piotr Gorski <[email protected]>
Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
sirlucjan authored and arighi committed Sep 26, 2024
1 parent 3b982c1 commit 573d83d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scheds/rust/scx_fair/src/bpf/main.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,6 @@ struct task_ctx *try_lookup_task_ctx(const struct task_struct *p)
(struct task_struct *)p, 0, 0);
}

/*
* Access a cpumask in read-only mode (typically to check bits).
*/
static const struct cpumask *cast_mask(struct bpf_cpumask *mask)
{
return (const struct cpumask *)mask;
}

/*
* Allocate/re-allocate a new cpumask.
*/
Expand Down

0 comments on commit 573d83d

Please sign in to comment.