Skip to content

Commit

Permalink
Merge pull request #1495 from kishen-v/powerISACheck
Browse files Browse the repository at this point in the history
Enable setting of vendor and related information for all Power versions
  • Loading branch information
shirou authored Aug 5, 2023
2 parents 0b4d681 + 63e0b63 commit 31d6b30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpu/cpu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ func InfoWithContext(ctx context.Context) ([]InfoStat, error) {
}
case "Model Name", "model name", "cpu":
c.ModelName = value
if strings.Contains(value, "POWER8") ||
strings.Contains(value, "POWER7") {
if strings.Contains(value, "POWER") {
c.Model = strings.Split(value, " ")[0]
c.Family = "POWER"
c.VendorID = "IBM"
Expand Down

0 comments on commit 31d6b30

Please sign in to comment.