Re: [PATCH] x86: Add portable getcpu call

From: Andi Kleen
Date: Wed Sep 27 2006 - 08:04:40 EST

> So this means that the contents of getcpu_cache will look completely
> different if a process runs in 32bit mode or 64bit mode. Even if you're
> saying "user programs should not..." this looks odd to me.
> Is this really on purpose and do you really think that no user space
> application will ever rely on the format of getcpu_cache?

The vsyscalls do, but if anything else does it deserves breaking.
In the user headers it will also be just a array blob.

I was considering to xor it with a random value to bring the point across
more strongly, but then didn't do it. Do you think I should?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at