| 279 | } |
| 280 | |
| 281 | static void |
| 282 | ipi_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 | |
| 301 | static void |
| 302 | ipi_hardclock(void *arg) |
nothing calls this directly
no test coverage detected