mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
sched_ext: Make scx_kf_allowed_if_unlocked() available outside ext.c
Relocate the scx_kf_allowed_if_unlocked(), so it can be used from other source files (e.g., ext_idle.c). No functional change. Signed-off-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
3a45329758
commit
617a77018f
2 changed files with 5 additions and 5 deletions
|
|
@ -1387,11 +1387,6 @@ static __always_inline bool scx_kf_allowed_on_arg_tasks(u32 mask,
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool scx_kf_allowed_if_unlocked(void)
|
||||
{
|
||||
return !current->scx.kf_mask;
|
||||
}
|
||||
|
||||
/**
|
||||
* nldsq_next_task - Iterate to the next task in a non-local DSQ
|
||||
* @dsq: user dsq being iterated
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@
|
|||
*/
|
||||
#ifdef CONFIG_SCHED_CLASS_EXT
|
||||
|
||||
static inline bool scx_kf_allowed_if_unlocked(void)
|
||||
{
|
||||
return !current->scx.kf_mask;
|
||||
}
|
||||
|
||||
DECLARE_STATIC_KEY_FALSE(scx_ops_allow_queued_wakeup);
|
||||
|
||||
void scx_tick(struct rq *rq);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue