MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ipi_preempt

Function ipi_preempt

freebsd/arm/arm/mp_machdep.c:281–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281static void
282ipi_preempt(void *arg)
283{
284 struct trapframe *oldframe;
285 struct thread *td;
286
287 critical_enter();
288 td = curthread;
289 td->td_intr_nesting_level++;
290 oldframe = td->td_intr_frame;
291 td->td_intr_frame = (struct trapframe *)arg;
292
293 CTR1(KTR_SMP, "%s: IPI_PREEMPT", __func__);
294 sched_preempt(td);
295
296 td->td_intr_frame = oldframe;
297 td->td_intr_nesting_level--;
298 critical_exit();
299}
300
301static void
302ipi_hardclock(void *arg)

Callers

nothing calls this directly

Calls 3

critical_enterFunction · 0.50
sched_preemptFunction · 0.50
critical_exitFunction · 0.50

Tested by

no test coverage detected