Messages in this thread | | | From | Keith Owens <> | Subject | Re: [patch 2.6.7-rc2] Add const to some scheduling functions | Date | Tue, 01 Jun 2004 19:55:24 +1000 |
| |
On Tue, 1 Jun 2004 00:16:32 -0700, Andrew Morton <akpm@osdl.org> wrote: >Keith Owens <kaos@ocs.com.au> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |