Re: [RFC3 01/14] Add some consts for inlines in mm.h

J.A. Magallon
2005-12-15T01:01:38Z

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

On Wed, 14 Dec 2005 16:14:20 -0800 (PST), Christoph Lameter <clameter@sgi.com> wrote:

> [PATCH] const attributes for some inlines in mm.h
>
> Const attributes allow the compiler to generate more efficient code by
> allowing callers to keep arguments of struct page in registers.
>

Even if it does not keep them in registers, at least it doesn't duplicate
them...

--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandriva Linux release 2006.1 (Cooker) for i586
Linux 2.6.14-jam4 (gcc 4.0.2 (4.0.2-1mdk for Mandriva Linux release 2006.1))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]