diff options
author | eota <none@none> | 2007-10-15 17:05:32 -0700 |
---|---|---|
committer | eota <none@none> | 2007-10-15 17:05:32 -0700 |
commit | 3db6d5a262f59ddb07cdabd1d7f2be0d275b3fff (patch) | |
tree | 8197eba43f87c495433316dabe8ad9c51519ca6e /usr/src/uts/common/os/clock.c | |
parent | 48bad4e79a6b5fcd66dda3a2ca1460d193768634 (diff) | |
download | illumos-joyent-3db6d5a262f59ddb07cdabd1d7f2be0d275b3fff.tar.gz |
6612330 ddi_timer.c seems heavy-handed on taskq threads
6612594 The variable clock_cyclic should not be updated after cyclic_timer is initialized.
Diffstat (limited to 'usr/src/uts/common/os/clock.c')
-rw-r--r-- | usr/src/uts/common/os/clock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/clock.c b/usr/src/uts/common/os/clock.c index 290506962e..28d5eece05 100644 --- a/usr/src/uts/common/os/clock.c +++ b/usr/src/uts/common/os/clock.c @@ -251,6 +251,7 @@ static int tod_broken = 0; /* clock chip doesn't work */ time_t boot_time = 0; /* Boot time in seconds since 1970 */ cyclic_id_t clock_cyclic; /* clock()'s cyclic_id */ cyclic_id_t deadman_cyclic; /* deadman()'s cyclic_id */ +cyclic_id_t ddi_timer_cyclic; /* cyclic_timer()'s cyclic_id */ static int lgrp_ticks; /* counter to schedule lgrp load calcs */ @@ -1056,7 +1057,7 @@ clock_init(void) hdlr.cyh_arg = NULL; mutex_enter(&cpu_lock); - clock_cyclic = cyclic_add(&hdlr, &when); + ddi_timer_cyclic = cyclic_add(&hdlr, &when); mutex_exit(&cpu_lock); } |