clock.c (14e9c9161c36f9f16bcc5bd48baccc2537a6e15d) clock.c (fdce57a04219d7a36c6646950fde6c8bcd97c044)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz and Don Ahn.
8 *

--- 461 unchanged lines hidden (view full) ---

470{
471
472 init_TSC();
473}
474
475void
476cpu_initclocks(void)
477{
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org>
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz and Don Ahn.
8 *

--- 461 unchanged lines hidden (view full) ---

470{
471
472 init_TSC();
473}
474
475void
476cpu_initclocks(void)
477{
478#ifdef EARLY_AP_STARTUP
479 struct thread *td;
480 int i;
478
481
482 td = curthread;
479 cpu_initclocks_bsp();
483 cpu_initclocks_bsp();
484 CPU_FOREACH(i) {
485 if (i == 0)
486 continue;
487 thread_lock(td);
488 sched_bind(td, i);
489 thread_unlock(td);
490 cpu_initclocks_ap();
491 }
492 thread_lock(td);
493 if (sched_is_bound(td))
494 sched_unbind(td);
495 thread_unlock(td);
496#else
497 cpu_initclocks_bsp();
498#endif
480}
481
482static int
483sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
484{
485 int error;
486 u_int freq;
487

--- 268 unchanged lines hidden ---
499}
500
501static int
502sysctl_machdep_i8254_freq(SYSCTL_HANDLER_ARGS)
503{
504 int error;
505 u_int freq;
506

--- 268 unchanged lines hidden ---