diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-24 02:55:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-24 02:55:44 +0000 |
commit | 3a415971e51236a8822966e9478dec1e2a4fc992 (patch) | |
tree | f61a3f2736539cb7a16b614100c5b81ad347ca24 /sys/kern | |
parent | 2bbb5619ff409169f370d0601e3b24007a3b9a33 (diff) |
move DEBUG-only variable into #ifdef
Diffstat (limited to 'sys/kern')
-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 |