Project

General

Profile

Actions

Bug #6862

closed

duplicate code in cpu_update_pct

Added by Robert Mustacchi over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
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

Actions #1

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

Also available in: Atom PDF