diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-02-05 20:44:56 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-02-05 20:44:56 +0000 |
| commit | a305896436e52e989792984fd82c0a727ec4da99 (patch) | |
| tree | 7b036147cc2b4401d165c279c86d259a0abc9809 /sys/kern/kern_tc.c | |
| parent | 49de9dcd8b21d2950342ab5e15597864841184e1 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_tc.c')
| -rw-r--r-- | sys/kern/kern_tc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 92e11c3f2eef..fa1832a18d7f 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -24,7 +24,7 @@ * Number of timecounters used to implement stable storage */ #ifndef NTIMECOUNTER -#define NTIMECOUNTER 45 +#define NTIMECOUNTER hz #endif static MALLOC_DEFINE(M_TIMECOUNTER, "timecounter", @@ -80,7 +80,7 @@ static struct timecounter dummy_timecounter = { "dummy" }; -struct timecounter *timecounter = &dummy_timecounter; +struct timecounter *volatile timecounter = &dummy_timecounter; static __inline unsigned tco_delta(struct timecounter *tc) @@ -263,6 +263,7 @@ tc_init(struct timecounter *tc) tc->tc_other = t1; *t1 = *tc; t2 = t1; + t3 = NULL; for (i = 1; i < NTIMECOUNTER; i++) { MALLOC(t3, struct timecounter *, sizeof *t3, M_TIMECOUNTER, M_WAITOK); |
