diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2001-12-14 17:56:12 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2001-12-14 17:56:12 +0000 |
| commit | e4fc250c15768b8e203496ee908dedb37846ea4f (patch) | |
| tree | 4ea0e407bb3cf5815d6067507d1fdc39f76f58e6 /sys/kern/kern_clock.c | |
| parent | 99adc698c1889950d1ff2b747f52de00fd69a8b1 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_clock.c')
| -rw-r--r-- | sys/kern/kern_clock.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 4c2ccc0a7928..a338dca6a4e6 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -69,6 +69,12 @@ #include <sys/gmon.h> #endif +#ifdef DEVICE_POLLING +#include <net/netisr.h> /* for NETISR_POLL */ + +extern void ether_poll1(void); +extern void hardclock_device_poll(void); +#endif /* DEVICE_POLLING */ static void initclocks __P((void *dummy)); SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL) @@ -140,6 +146,9 @@ initclocks(dummy) psdiv = pscnt = 1; cpu_initclocks(); +#ifdef DEVICE_POLLING + register_netisr(NETISR_POLL, ether_poll1); +#endif /* * Compute profhz/stathz, and fix profhz if needed. */ @@ -212,6 +221,9 @@ hardclock(frame) statclock(frame); tc_windup(); +#ifdef DEVICE_POLLING + hardclock_device_poll(); +#endif /* DEVICE_POLLING */ /* * Process callouts at a very low cpu priority, so we don't keep the |
