On 02/07/2010 12:31 PM, Geert Uytterhoeven wrote:
<trying to completely destroy my credibility>
Shouldn't put_cpu() take a (possibly dummy) `cpu' parameter, as
returned by get_cpu()?
</trying>
Please tell me that you're joking.
There is absolutely no reason for it, since there is only one CPU that
you can put (the one you're already on.) The only thing that will
happen if you insist on carrying the CPU number forward (unless it is
used anyway) is that the compiler will generate worse code.
get_cpu() returning the CPU you're on is a convenience; it's so you
don't need to do a third operation just to get your current CPU number,
but it could just as easily be done that way.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html