Project

General

Profile

Cleanup #7869

arch: use cpuid.h when possible

Added by Loic Dachary over 3 years ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
common
Target version:
-
Start date:
03/26/2014
Due date:
% Done:

100%

Spent time:
Tags:
arch cpuid
Backport:
Reviewed:
Affected Versions:
Release:
Needs Doc:
No

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

History

#1 Updated by Jos Collin 2 months ago

  • Assignee set to Jos Collin

#2 Updated by Jos Collin 2 months ago

  • Status changed from New to Need Review

#3 Updated by Jos Collin 2 months ago

  • Status changed from Need Review to In Progress

The PR is approved

#4 Updated by Jos Collin about 2 months 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

#5 Updated by Jos Collin about 2 months ago

  • Estimated time deleted (1.00 h)
  • Tags set to arch cpuid

Also available in: Atom PDF