summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-02-11 23:56:18 +0000
committerluigi <luigi@FreeBSD.org>2002-02-11 23:56:18 +0000
commit57d5032c484cfda9ea856603f70ad12ca8e3af82 (patch)
tree3efc9864c55501a9ef177765c356ad8ef030cc75 /sys/kern/kern_clock.c
parentf6c142724016a48be2bd25c037dfc38689ef8f7b (diff)
downloadFreeBSD-src-57d5032c484cfda9ea856603f70ad12ca8e3af82.zip
FreeBSD-src-57d5032c484cfda9ea856603f70ad12ca8e3af82.tar.gz
MFS: synchronize the code with the version in -stable, specifically:
+ SYSCTL_ULONG -> SYSCTL_UINT + some procedure renaming and variable rearrangement + fix the 'interface going deaf' problem same as in -stable.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 7591f11..1b3f9c5 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -70,9 +70,7 @@
#endif
#ifdef DEVICE_POLLING
-#include <net/netisr.h> /* for NETISR_POLL */
-
-extern void ether_poll1(void);
+extern void init_device_poll(void);
extern void hardclock_device_poll(void);
#endif /* DEVICE_POLLING */
@@ -147,7 +145,7 @@ initclocks(dummy)
cpu_initclocks();
#ifdef DEVICE_POLLING
- register_netisr(NETISR_POLL, ether_poll1);
+ init_device_poll();
#endif
/*
* Compute profhz/stathz, and fix profhz if needed.
@@ -222,7 +220,7 @@ hardclock(frame)
tc_windup();
#ifdef DEVICE_POLLING
- hardclock_device_poll();
+ hardclock_device_poll(); /* this is very short and quick */
#endif /* DEVICE_POLLING */
/*
OpenPOWER on IntegriCloud