Re: [PATCH 2.6.24] x86: add sysfs interface for cpuid module

From: H. Peter Anvin
Date: Fri Feb 01 2008 - 12:57:32 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/