lkml.org 
[lkml]   [2008]   [Feb]   [1]   [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
dean gaudet wrote:
> why do we need another kernel cpuid reading method when sched_setaffinity
> exists and cpuid is available in ring3?

Because /dev/cpu/*/cpuid:

a) predates sched_setaffinity by quite a few years
b) is already widely used
c) doesn't have issues with relative priorities (using sched_setaffinity
can easily wait forever.)
d) can be accessed by unprivileged processes given appropriate device
info.

-hpa


\
 
 \ /
  Last update: 2008-02-01 18:59    [W:0.153 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site