Project

General

Profile

Actions

Cleanup #7869

closed

arch: use cpuid.h when possible

Added by Loïc Dachary about 10 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
common
Target version:
-
% Done:

100%

Spent time:
Tags:
arch cpuid
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Milosz Tanski <>:

Instead of doing cpuid manually you can use builtins provided in gcc
(and in clang). There's a cpuid.h header you can include. This
stackoverflow answer has a good summary of it: http://stackoverflow.com/questions/14266772/how-do-i-call-cpuid-in-linux?answertab=votes#tab-top
Actions #1

Updated by Jos Collin almost 7 years ago

  • Assignee set to Jos Collin
Actions #2

Updated by Jos Collin almost 7 years ago

  • Status changed from New to Fix Under Review
Actions #3

Updated by Jos Collin almost 7 years ago

  • Status changed from Fix Under Review to In Progress

The PR is approved

Actions #4

Updated by Jos Collin almost 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
  • Estimated time set to 1:00 h

Pull request was merged as commit 0807f38 by yuriw

Actions #5

Updated by Jos Collin almost 7 years ago

  • Estimated time deleted (1:00 h)
  • Tags set to arch cpuid
Actions

Also available in: Atom PDF