On Wed, 17 Dec 2008 22:57:38 +0530
Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> wrote:
What's with all the crappy macros in here?
This one purports to be a constant, but it isn't - it's code.
It would be cleaner, clearer and more idiomatic to do
static inline int powersaving_sd_flags(void)
{
...
}
Also, doing (sched_mc_power_savings | sched_smt_power_saving) might
save a branch.
buggy when passed an expression with side-effects. Doesn't need to be
implemented as a macro.
Sigh.
--