freebsd-dev/sys/compat
Bill Paul a1788fb41e Small timer cleanups:
- Use the dh_inserted member of the dispatch header in the Windows
  timer structure to indicate that the timer has been "inserted into
  the timer queue" (i.e. armed via timeout()). Use this as the value
  to return to the caller in KeCancelTimer(). Previously, I was using
  callout_pending(), but you can't use that with timeout()/untimeout()
  without creating a potential race condition.

- Make ntoskrnl_init_timer() just a wrapper around ntoskrnl_init_timer_ex()
  (reduces some code duplication).

- Drop Giant when entering if_ndis.c:ndis_tick() and
  subr_ntorkrnl.c:ntoskrnl_timercall(). At the moment, I'm forced to
  use system callwheel via timeout()/untimeout() to handle timers rather
  than the callout API (struct callout is too big to fit inside the
  Windows struct KTIMER, so I'm kind of hosed). Unfortunately, all
  the callouts in the callwhere are not marked as MPSAFE, so when
  one of them fires, it implicitly acquires Giant before invoking the
  callback routine (and releases it when it returns). I don't need to
  hold Giant, but there's no way to stop the callout code from acquiring
  it as long as I'm using timeout()/untimeout(), so for now we cheat
  by just dropping Giant right away (and re-acquiring it right before
  the routine returns so keep the callout code happy). At some point,
  I will need to solve this better, but for now this should be a suitable
  workaround.
2004-04-30 20:51:55 +00:00
..
freebsd32 Fix build for non-COMPAT_FREEBSD4 configurations. Make the FreeBSD 4 2004-04-24 04:31:59 +00:00
ia32 Check in structure definitions for the FreeBSD-3.x signal syscall stuff. 2004-04-14 23:20:14 +00:00
linprocfs Remove ps_argsopen from this check, because of two reasons: 2004-04-01 00:04:23 +00:00
linux - Replace wait1() with a kern_wait() function that accepts the pid, 2004-03-17 20:00:00 +00:00
ndis Small timer cleanups: 2004-04-30 20:51:55 +00:00
netbsd Move the non-MD machine/dvcfg.h and machine/physio_proc.h to a common 2004-03-13 19:46:27 +00:00
pecoff Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
svr4 - Replace wait1() with a kern_wait() function that accepts the pid, 2004-03-17 20:00:00 +00:00