Re: [patch 2.6.7-rc2] Add const to some scheduling functions

From: Keith Owens
Date: Tue Jun 01 2004 - 04:57:59 EST


On Tue, 1 Jun 2004 00:16:32 -0700,
Andrew Morton <akpm@xxxxxxxx> wrote:
>Keith Owens <kaos@xxxxxxxxxx> wrote:
>>
>> Several scheduler macros only read from the task struct, mark them
>> const. It can generate better code.
>
>It makes no change to the gcc-3.4.0-compiled x86 kernel's size. Under what
>circumstances did you see improvements?

None, it is just good programming practice to mark parameters as const
where possible.

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