HomeFreeBSD

MFC r363527: Allow swi_sched() to be called from NMI context.

Description

MFC r363527: Allow swi_sched() to be called from NMI context.

For purposes of handling hardware error reported via NMIs I need a way to
escape NMI context, being too restrictive to do something significant.

To do it this change introduces new swi_sched() flag SWI_FROMNMI, making
it careful about used KPIs. On platforms allowing IPI sending from NMI
context (x86 for now) it immediately wakes clk_intr_event via new IPI_SWI,
otherwise it works just like SWI_DELAY.

Details

Provenance
mavAuthored on
Parents
rS363999: MFC r363495: Introduce ipi_self_from_nmi().
Branches
Unknown
Tags
Unknown