Re: [PATCH] task_struct colouring ...

From: Davide Libenzi (davidel@xmailserver.org)
Date: Sat Dec 01 2001 - 18:37:23 EST


On Sat, 1 Dec 2001, Alan Cox wrote:

> > The point is why store kernel pointers in global registers when You can
> > achieve the same functionality, with a smaller patch, that does not need
> > to be recoded for each CPU, without using global registers.
>
> Because it is much much much faster

We'll see how much faster is the global register allocation against code
like :

movl %esp, %eax
andl $-8192, %eax
movl (%eax), %eax

Because you can justify a global register allocation only if this "much
much faster" translates to a number that has sense.

- Davide

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:17 EST