diff options
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r-- | sys/kern/kern_tc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 25f987ac195..57321e2e1d8 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $OpenBSD: kern_tc.c,v 1.14 2010/04/20 22:05:43 tedu Exp $ + * $OpenBSD: kern_tc.c,v 1.15 2010/09/24 02:55:43 deraadt Exp $ * $FreeBSD: src/sys/kern/kern_tc.c,v 1.148 2003/03/18 08:45:23 phk Exp $ */ @@ -511,7 +511,9 @@ tc_ticktock(void) void inittimecounter(void) { +#ifdef DEBUG u_int p; +#endif /* * Set the initial timeout to @@ -525,8 +527,8 @@ inittimecounter(void) tc_tick = (hz + 500) / 1000; else tc_tick = 1; - p = (tc_tick * 1000000) / hz; #ifdef DEBUG + p = (tc_tick * 1000000) / hz; printf("Timecounters tick every %d.%03u msec\n", p / 1000, p % 1000); #endif |