/* * The critical section between kernel_fpu_begin() and kernel_fpu_end() * is non-reentrant. It is the caller's responsibility to avoid reentrance. * See drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c as an example.
*/ static DEFINE_PER_CPU(bool, in_kernel_fpu); static DEFINE_PER_CPU(unsignedint, euen_current);
staticinlinevoid fpregs_lock(void)
{ if (IS_ENABLED(CONFIG_PREEMPT_RT))
preempt_disable(); else
local_bh_disable();
}
staticinlinevoid fpregs_unlock(void)
{ if (IS_ENABLED(CONFIG_PREEMPT_RT))
preempt_enable(); else
local_bh_enable();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.