diff options
author | njl <njl@FreeBSD.org> | 2007-07-12 17:00:51 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2007-07-12 17:00:51 +0000 |
commit | 441582040c22d482801d42047860f700b6035be8 (patch) | |
tree | cb1533dad0c61635faf9ba7ff91c42abfd61ce6d /contrib/diff/lib/time_r.h | |
parent | 01c1ec9b1ae5e546930028126ab6d950d401c786 (diff) | |
download | FreeBSD-src-441582040c22d482801d42047860f700b6035be8.zip FreeBSD-src-441582040c22d482801d42047860f700b6035be8.tar.gz |
Fix a bug where the callout might not be initialized before being used.
Rev 1.9 introduced another path where machclk_freq would be initialized
before the rest of setup was done (i.e. initializing the callout). Make
the one-time initialization a separate function and make init_machclk()
able to be called multiple times, any time. We depend on tsc_freq first
being updated from the highest priority eventhandler, thus we run last
and call init_machclk() to set machclk_freq. Also, don't initialize
static variables to 0.
Tested by: Eygene Ryabinkin
Approved by: re
Diffstat (limited to 'contrib/diff/lib/time_r.h')
0 files changed, 0 insertions, 0 deletions