Skip to content

Commit bba26bf

Browse files
committed
sched_ext: Relocate find_user_dsq()
To prepare for the addition of find_global_dsq(). No functional changes. Signed-off-by: tejun heo <[email protected]> Acked-by: David Vernet <[email protected]>
1 parent 63fb3ec commit bba26bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

kernel/sched/ext.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,11 @@ static bool u32_before(u32 a, u32 b)
10291029
return (s32)(a - b) < 0;
10301030
}
10311031

1032+
static struct scx_dispatch_q *find_user_dsq(u64 dsq_id)
1033+
{
1034+
return rhashtable_lookup_fast(&dsq_hash, &dsq_id, dsq_hash_params);
1035+
}
1036+
10321037
/*
10331038
* scx_kf_mask enforcement. Some kfuncs can only be called from specific SCX
10341039
* ops. When invoking SCX ops, SCX_CALL_OP[_RET]() should be used to indicate
@@ -1803,11 +1808,6 @@ static void dispatch_dequeue(struct rq *rq, struct task_struct *p)
18031808
raw_spin_unlock(&dsq->lock);
18041809
}
18051810

1806-
static struct scx_dispatch_q *find_user_dsq(u64 dsq_id)
1807-
{
1808-
return rhashtable_lookup_fast(&dsq_hash, &dsq_id, dsq_hash_params);
1809-
}
1810-
18111811
static struct scx_dispatch_q *find_dsq_for_dispatch(struct rq *rq, u64 dsq_id,
18121812
struct task_struct *p)
18131813
{

0 commit comments

Comments
 (0)