Re: [PATCH] RWSEM: Rewrite rwsem.c and rwsem-spinlock.c more simply.

From: Andi Kleen
Date: Tue Mar 25 2008 - 08:08:57 EST


"Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx> writes:

> Rewrite these source files more simply by deleting the superfluous
> "tsk" task_struct pointer and rephrasing in terms of the "current"
> task pointer.

This is likely a code pessimization because "current" is inline
assembler and many gcc versions cannot CSE it.

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