[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <44B7EC64.5070907@zytor.com>
Date: Fri, 14 Jul 2006 12:11:32 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>
CC: Alan Cox <alan@...rguk.ukuu.org.uk>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Arjan van de Ven <arjan@...radead.org>,
Jakub Jelinek <jakub@...hat.com>,
Ulrich Drepper <drepper@...hat.com>,
Roland McGrath <roland@...hat.com>,
"Randy.Dunlap" <rdunlap@...otime.net>, akpm@...l.org,
linux-kernel@...r.kernel.org, libc-alpha@...rceware.org
Subject: Re: [PATCH] Use uname not sysctl to get the kernel revision
Benjamin Herrenschmidt wrote:
>>
>> If you want to do the job right then do this
>>
>> - Stick an indicator of how much else wants to run on this CPU in the
>> vsyscall page or similar location
>
> Except that "this cpu" doesn't really mean anything in userspace, and
> while I think Andi has some tricks to get some sort of CPU number to
> userspace (though it's really only valid during the execution of the
> instruction that reads it :) I haven't yet found an equivalent for
> powerpc (and possibly other architectures will have the same problem).
>
Sure it does... although its validity in terms of a locality metric
decays with time.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists