Actions
Bug #6862
closedduplicate code in cpu_update_pct
Start date:
2016-04-07
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
In addition to removing the duplicate code, move getting t->t_pctcpu to try to protect a race where we use the wrong value from t->t_hrtime in cases where we'll have to loop around
Updated by Electric Monk over 6 years ago
- Status changed from New to Closed
git commit b7671ee85175f237a818ddb1457a2726d91d56fc
commit b7671ee85175f237a818ddb1457a2726d91d56fc Author: Jerry Jelinek <jerry.jelinek@joyent.com> Date: 2016-04-25T17:56:33.000Z 6862 duplicate code in cpu_update_pct Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@omniti.com>
Actions