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 locationExcept 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Roland McGrath <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Ulrich Drepper <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Jakub Jelinek <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: "H. Peter Anvin" <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Arjan van de Ven <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Arjan van de Ven <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: "H. Peter Anvin" <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Alan Cox <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [PATCH] Use uname not sysctl to get the kernel revision
- Prev by Date: Re: [patch] IDE: Touch NMI watchdog during resume from STR
- Next by Date: PROBLEM: epoll_wait() returns wrong events for EOF with EPOLLOUT
- Previous by thread: Re: [PATCH] Use uname not sysctl to get the kernel revision
- Next by thread: Re: [PATCH] Use uname not sysctl to get the kernel revision
- Index(es):