lkml.org 
[lkml]   [2008]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.6.24] x86: add sysfs interface for cpuid module
Yi Yang wrote:
> Function cpuid has reset ecx to 0 immediate before calling to __cpuid,
> so this shouldn't be a problem now.

Unless, of course, you want to get to the information for the higher
CPUID levels.

The easiest way to fix that would be to use cpuid_count() and let
/dev/cpu/*/cpuid take the %ecx value in the high half of the offset.
That would have minimal impact on the interface.

-hpa


\
 
 \ /
  Last update: 2008-01-30 08:37    [W:0.771 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site