kernel - Change time_second to time_uptime for all expiration calculations
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 5 Sep 2013 19:06:13 +0000 (12:06 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 5 Sep 2013 19:06:13 +0000 (12:06 -0700)
commitcec7392796354c53ac6469588a64f6536ed22659
treecce866d40e2c0a2cc33e9ec87053021e9e97996c
parentef94cdf84205cb41c02e8c8c5a7178e028aa9297
kernel - Change time_second to time_uptime for all expiration calculations

* Vet the entire kernel and change use cases for expiration calculations
  using time_second to use time_uptime instead.

* Protects these expiration calculations from step changes in the wall time,
  particularly needed for route table entries.

* Probably requires further variable type adjustments but the use of
  time_uptime instead if time_second is highly unlikely to ever overrun
  any demotions to int still present.
75 files changed:
libexec/bootpd/rtmsg.c
sbin/route/route.c
sys/bus/cam/scsi/scsi_da.c
sys/bus/usb/usbdi.c
sys/dev/atm/hfa/fore_stats.c
sys/dev/disk/ncr/ncr.c
sys/dev/drm/i915kms/i915_drv.c
sys/dev/misc/musycc/musycc.c
sys/dev/netif/mn/if_mn.c
sys/dev/netif/nfe/if_nfe.c
sys/dev/raid/aac/aac.c
sys/dev/raid/aac/aac_cam.c
sys/dev/raid/ips/ips.c
sys/dev/raid/mfi/mfi.c
sys/dev/raid/mfi/mfi_tbolt.c
sys/dev/raid/mlx/mlx.c
sys/dev/raid/mlx/mlxvar.h
sys/dev/raid/mly/mly.c
sys/dev/raid/mps/mps.c
sys/dev/raid/twa/tw_cl_share.h
sys/dev/raid/twa/tw_osl_inline.h
sys/dev/raid/twe/twe.c
sys/dev/raid/tws/tws_hdm.c
sys/dev/raid/tws/tws_services.h
sys/kern/kern_clock.c
sys/kern/kern_device.c
sys/kern/kern_ntptime.c
sys/kern/kern_sensors.c
sys/kern/subr_prf.c
sys/kern/vfs_cache.c
sys/kern/vfs_sync.c
sys/kern/vfs_vnops.c
sys/net/bridge/if_bridge.c
sys/net/bridge/if_bridgevar.h
sys/net/dummynet/ip_dummynet.c
sys/net/ip_mroute/ip_mroute.c
sys/net/ipfw/ip_fw2.c
sys/net/ppp/if_ppp.c
sys/net/route.c
sys/net/sl/if_sl.c
sys/net/sppp/if_spppsubr.c
sys/netinet/if_ether.c
sys/netinet/in_rmx.c
sys/netinet/ip_input.c
sys/netinet/tcp_output.c
sys/netinet6/icmp6.c
sys/netinet6/in6.c
sys/netinet6/in6.h
sys/netinet6/in6_prefix.c
sys/netinet6/in6_rmx.c
sys/netinet6/ip6_forward.c
sys/netinet6/ip6_mroute.c
sys/netinet6/nd6.c
sys/netinet6/nd6_nbr.c
sys/netinet6/nd6_rtr.c
sys/netproto/802_11/ieee80211_node.h
sys/netproto/802_11/wlan/ieee80211_ddb.c
sys/netproto/802_11/wlan/ieee80211_node.c
sys/netproto/802_11/wlan/ieee80211_sta.c
sys/platform/pc32/i386/trap.c
sys/platform/pc32/isa/clock.c
sys/platform/pc64/isa/clock.c
sys/sys/conf.h
sys/sys/time.h
sys/vfs/devfs/devfs_core.c
sys/vfs/devfs/devfs_vnops.c
sys/vfs/nfs/bootp_subr.c
sys/vfs/nfs/nfs.h
sys/vfs/nfs/nfs_socket.c
sys/vfs/nfs/nfs_subs.c
sys/vfs/nfs/nfs_syscalls.c
sys/vfs/nwfs/nwfs_node.c
sys/vfs/smbfs/smbfs_node.c
sys/vfs/ufs/ffs_softdep.c
sys/vm/vm_pageout.c