]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initializes the ratectl for a node when the state is changed to RUN.
authorweongyo <weongyo@FreeBSD.org>
Tue, 29 Jun 2010 21:56:42 +0000 (21:56 +0000)
committerweongyo <weongyo@FreeBSD.org>
Tue, 29 Jun 2010 21:56:42 +0000 (21:56 +0000)
commitf954d3e94b87aadf25b305b319e283ab4fe16333
tree2c92f7ec3260941a8c982d3798d7f8dd6a52bcd1
parent031846c086e4509988d5bb5bea7699703882ffa4
Initializes the ratectl for a node when the state is changed to RUN.
This prevents a kernel fault by dividing with zero because the initial
rate was 0 and didn't be initialized.

Tested by: Warren Block <wblock at wonkity.com>
MFC after: 3 days
sys/dev/bwi/if_bwi.c