Re: current pointer question/suggestion

ralf@uni-koblenz.de
Sun, 19 Jul 1998 04:33:54 +0200


On Sat, Jul 18, 1998 at 05:53:51PM +0200, Alexander Kjeldaas wrote:

> For most accesses to current, we are not interested in taking the
> address. The example you give is one of the few cases we _are_
> interested in the address, but we can speed up all other accesses to
> current by going through the kernel replacing current with __current
> in appropriate places.
>
> The above should already speed up the kernel _if_ the mapping scheme
> doesn't have weird cache effects etc. (don't know how efficient MIPS
> weirdo chips are at this stuff).

More efficient that anything Intel ever made :-) I don't ever get a TLB
fault for the kernel space, caches don't play games with me and I get the
current pointer for free anyway, so why should I map the current process'
task_struct at all ...

Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html