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

From: Paul Jackson
Date: Tue Jun 01 2004 - 15:18:25 EST


Keith wrote (of some added 'const' qualifiers):
> It can generate better code.

Later, he wrote (when asked under what circumstances he saw this):
>None, it is just good programming practice ...

So you're not saying it _does_ generate better code, but that it's
possible that it could do so, right?

In any case, the value of 'const' to me is more in documenting
the interface, and imposing compiler checked restrictions on the
implementation.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373
-
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/