mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user