| 404 | } |
| 405 | |
| 406 | void |
| 407 | cpu_initclocks(void) |
| 408 | { |
| 409 | #ifdef EARLY_AP_STARTUP |
| 410 | struct thread *td; |
| 411 | int i; |
| 412 | |
| 413 | td = curthread; |
| 414 | cpu_initclocks_bsp(); |
| 415 | CPU_FOREACH(i) { |
| 416 | if (i == 0) |
| 417 | continue; |
| 418 | thread_lock(td); |
| 419 | sched_bind(td, i); |
| 420 | thread_unlock(td); |
| 421 | cpu_initclocks_ap(); |
| 422 | } |
| 423 | thread_lock(td); |
| 424 | if (sched_is_bound(td)) |
| 425 | sched_unbind(td); |
| 426 | thread_unlock(td); |
| 427 | #else |
| 428 | cpu_initclocks_bsp(); |
| 429 | #endif |
| 430 | } |
| 431 | |
| 432 | static int |
| 433 | sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS) |
no test coverage detected