diff options
author | arybchik <arybchik@FreeBSD.org> | 2016-08-23 13:51:55 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2016-08-23 13:51:55 +0000 |
commit | 8b080b5d18b14e2d595f39d28450f52328cdb834 (patch) | |
tree | ad937769133ff43615fd92d3b0a8c7c5029403a3 /lib/libthr/thread/thr_exit.c | |
parent | 69c00374f5e54f7261605bde1bcecd7946a30d7d (diff) | |
download | FreeBSD-src-8b080b5d18b14e2d595f39d28450f52328cdb834.zip FreeBSD-src-8b080b5d18b14e2d595f39d28450f52328cdb834.tar.gz |
MFC r301724
sfxge(4): handle negative ticks difference correctly
ticks are signed int and if statistics is not updated for a long time
(more than INT_MAX ticks, but less than UINT_MAX) difference becomes
negative and less than hz for a long time.
Other option to repeat is simply load driver (which initializes
timestamps to 0) when ticks are negative.
Sponsored by: Solarflare Communications, Inc.
Diffstat (limited to 'lib/libthr/thread/thr_exit.c')
0 files changed, 0 insertions, 0 deletions