]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mca: use time_uptime instead of ticks for CMCI throttling
authoravg <avg@FreeBSD.org>
Tue, 14 Feb 2017 22:46:39 +0000 (22:46 +0000)
committeravg <avg@FreeBSD.org>
Tue, 14 Feb 2017 22:46:39 +0000 (22:46 +0000)
commit3cf45460dd9b0656814ad6a7fe46c192be963f3a
treed3f7bcdb36125cd8ca0ffc48b0ad1b00538c926d
parent2e3128b7ec001bbc09f181f3c8e9bdeb39c823a4
mca: use time_uptime instead of ticks for CMCI throttling

This solves several problems.
First of all, cmc_throttle is specified in seconds and there was no
conversion between ticks and seconds when they were mixed together.
Second, we avoid potential problems with ticks wrapping around.

Resolution of time_uptime should be sufficient for the throttling
purposes.

Discussed with: jhb
MFC after: 12 days
sys/x86/x86/mca.c