git: kernel - Change time_second to time_uptime for all expiration calculations

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Sep 5 12:08:58 PDT 2013


commit cec7392796354c53ac6469588a64f6536ed22659
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Sep 5 12:06:13 2013 -0700

    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.

Summary of changes:
 libexec/bootpd/rtmsg.c                    |  6 +++---
 sbin/route/route.c                        |  7 ++++--
 sys/bus/cam/scsi/scsi_da.c                |  4 ++--
 sys/bus/usb/usbdi.c                       |  4 ++--
 sys/dev/atm/hfa/fore_stats.c              |  4 ++--
 sys/dev/disk/ncr/ncr.c                    | 10 ++++-----
 sys/dev/drm/i915kms/i915_drv.c            |  4 ++--
 sys/dev/misc/musycc/musycc.c              | 36 +++++++++++++++----------------
 sys/dev/netif/mn/if_mn.c                  | 12 +++++------
 sys/dev/netif/nfe/if_nfe.c                |  4 ++--
 sys/dev/raid/aac/aac.c                    | 20 ++++++++---------
 sys/dev/raid/aac/aac_cam.c                |  2 +-
 sys/dev/raid/ips/ips.c                    |  4 ++--
 sys/dev/raid/mfi/mfi.c                    | 12 +++++------
 sys/dev/raid/mfi/mfi_tbolt.c              |  6 +++---
 sys/dev/raid/mlx/mlx.c                    | 20 ++++++++---------
 sys/dev/raid/mlx/mlxvar.h                 |  2 +-
 sys/dev/raid/mly/mly.c                    |  6 +++---
 sys/dev/raid/mps/mps.c                    |  2 +-
 sys/dev/raid/twa/tw_cl_share.h            |  2 +-
 sys/dev/raid/twa/tw_osl_inline.h          |  4 +---
 sys/dev/raid/twe/twe.c                    | 16 +++++++-------
 sys/dev/raid/tws/tws_hdm.c                |  2 +-
 sys/dev/raid/tws/tws_services.h           |  3 +--
 sys/kern/kern_clock.c                     |  3 +++
 sys/kern/kern_device.c                    |  4 ++--
 sys/kern/kern_ntptime.c                   | 14 ++++++------
 sys/kern/kern_sensors.c                   |  6 +++---
 sys/kern/subr_prf.c                       |  4 ++--
 sys/kern/vfs_cache.c                      |  4 ++--
 sys/kern/vfs_sync.c                       |  4 ++--
 sys/kern/vfs_vnops.c                      |  8 +++++--
 sys/net/bridge/if_bridge.c                | 12 +++++------
 sys/net/bridge/if_bridgevar.h             |  4 ++--
 sys/net/dummynet/ip_dummynet.c            |  4 ++--
 sys/net/ip_mroute/ip_mroute.c             |  6 +++---
 sys/net/ipfw/ip_fw2.c                     |  6 +++---
 sys/net/ppp/if_ppp.c                      | 14 ++++++------
 sys/net/route.c                           |  2 +-
 sys/net/sl/if_sl.c                        |  8 +++----
 sys/net/sppp/if_spppsubr.c                |  6 +++---
 sys/netinet/if_ether.c                    | 14 ++++++------
 sys/netinet/in_rmx.c                      | 22 +++++++++----------
 sys/netinet/ip_input.c                    |  2 +-
 sys/netinet/tcp_output.c                  |  4 ++--
 sys/netinet6/icmp6.c                      |  4 ++--
 sys/netinet6/in6.c                        | 16 +++++++-------
 sys/netinet6/in6.h                        |  4 ++--
 sys/netinet6/in6_prefix.c                 | 10 ++++-----
 sys/netinet6/in6_rmx.c                    | 30 +++++++++++++-------------
 sys/netinet6/ip6_forward.c                |  8 +++----
 sys/netinet6/ip6_mroute.c                 |  4 ++--
 sys/netinet6/nd6.c                        | 34 ++++++++++++++---------------
 sys/netinet6/nd6_nbr.c                    | 10 ++++-----
 sys/netinet6/nd6_rtr.c                    | 16 +++++++-------
 sys/netproto/802_11/ieee80211_node.h      |  2 +-
 sys/netproto/802_11/wlan/ieee80211_ddb.c  |  4 ++--
 sys/netproto/802_11/wlan/ieee80211_node.c |  2 +-
 sys/netproto/802_11/wlan/ieee80211_sta.c  |  2 +-
 sys/platform/pc32/i386/trap.c             |  7 +++---
 sys/platform/pc32/isa/clock.c             |  2 +-
 sys/platform/pc64/isa/clock.c             |  2 +-
 sys/sys/conf.h                            |  4 ++--
 sys/sys/time.h                            |  3 ++-
 sys/vfs/devfs/devfs_core.c                |  4 ++--
 sys/vfs/devfs/devfs_vnops.c               |  8 +++++--
 sys/vfs/nfs/bootp_subr.c                  | 22 +++++++------------
 sys/vfs/nfs/nfs.h                         |  2 +-
 sys/vfs/nfs/nfs_socket.c                  |  6 +++---
 sys/vfs/nfs/nfs_subs.c                    |  6 +++---
 sys/vfs/nfs/nfs_syscalls.c                | 10 ++++-----
 sys/vfs/nwfs/nwfs_node.c                  |  2 +-
 sys/vfs/smbfs/smbfs_node.c                |  4 ++--
 sys/vfs/ufs/ffs_softdep.c                 |  9 +++++---
 sys/vm/vm_pageout.c                       |  6 +++---
 75 files changed, 297 insertions(+), 289 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cec7392796354c53ac6469588a64f6536ed22659


-- 
DragonFly BSD source repository


More information about the Commits mailing list