freebsd-skq/sys/dev/mpr
Steven Hartland 85c9dd9d89 Prevent overflow issues in timeout processing
Previously, any timeout value for which (timeout * hz) will overflow the
signed integer, will give weird results, since callout(9) routines will
convert negative values of ticks to '1'. For unsigned integer overflow we
will get sufficiently smaller timeout values than expected.

Switch from callout_reset, which requires conversion to int based ticks
to callout_reset_sbt to avoid this.

Also correct isci to correctly resolve ccb timeout.

This was based on the original work done by Eygene Ryabinkin
<rea@freebsd.org> back in 5 Aug 2011 which used a macro to help avoid
the overlow.

Differential Revision:	https://reviews.freebsd.org/D1157
Reviewed by:	mav, davide
MFC after:	1 month
Sponsored by:	Multiplay
2014-11-21 21:01:24 +00:00
..
mpi
mpr_config.c
mpr_ioctl.h
mpr_mapping.c
mpr_mapping.h
mpr_pci.c
mpr_sas_lsi.c Add #ifdefs in the mpr(4) driver so that versions of stable/9 that 2014-05-08 20:46:46 +00:00
mpr_sas.c Prevent overflow issues in timeout processing 2014-11-21 21:01:24 +00:00
mpr_sas.h
mpr_table.c Properly report 12Gbps connection rate. 2014-10-08 16:22:26 +00:00
mpr_table.h
mpr_user.c Change the device name for mpr(4) from /dev/mpr_N to /dev/mprN. 2014-05-06 22:13:38 +00:00
mpr.c Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
mprvar.h