diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-10-09 17:43:51 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-10-09 17:43:51 +0000 |
commit | 9dee7f7fac3bcb758b6911b4d43db57896f6dc83 (patch) | |
tree | 98f9711dae22886bd2fb278930112c27e573e8e6 /sys/arch/macppc/include | |
parent | 956d5d4e261ee8ea7f137811e37ba9e0e8af4c9b (diff) |
Initialize ns_per_tick as soon as we have read the timebase from the
device-tree to restore the behaviour present before my last change.
This fixes a regression seen on some Powerbooks where one of the two
kiic(4) would always timeout when trying to configure the audio chip.
Diffstat (limited to 'sys/arch/macppc/include')
-rw-r--r-- | sys/arch/macppc/include/cpu.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/macppc/include/cpu.h b/sys/arch/macppc/include/cpu.h index 586d91678f6..3e64b2bcccf 100644 --- a/sys/arch/macppc/include/cpu.h +++ b/sys/arch/macppc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.13 2013/09/13 07:29:02 mpi Exp $ */ +/* $OpenBSD: cpu.h,v 1.14 2013/10/09 17:43:50 mpi Exp $ */ /* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */ /* @@ -63,6 +63,7 @@ extern int ppc_altivec; extern void (*ppc64_slew_voltage)(u_int); extern u_int32_t ticks_per_sec; +extern u_int32_t ns_per_tick; #endif /* _KERNEL */ #endif /* _MACHINE_CPU_H_ */ |