Re: [RFC, patch] i386: vgetcpu(), take 2

From: Ingo Molnar
Date: Wed Jun 28 2006 - 05:04:39 EST



* Andi Kleen <ak@xxxxxxx> wrote:

> On Wednesday 28 June 2006 07:44, Paul Jackson wrote:
> > > but my gut feeling is that we should add a proper sys_get_cpu() syscall
> >
> > Yes - this should be for more or less all arch's.
>
> The whole point of the original implementation is to do a fast
> architecture specific call. A slow generic call isn't very useful.

it's useful in terms of userspace uniformity. It's alot easier to expose
such APIs via glibc if there's a generic implementation everywhere.
Obviously every arch is encouraged to optimize it into a vsyscall.

Ingo
-
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/