[Cbe-oss-dev] [patch] cell: use pmi in cpufreq driver

Segher Boessenkool segher at kernel.crashing.org
Sat Feb 24 08:37:39 EST 2007


> +#ifdef DEBUG
> +	time = (u64) get_cycles() - time; /* actual cycles (not cpu cycles!) 
> */
> +	time = 1000000000 * time / CLOCK_TICK_RATE; /* time in ns (10^-9) */
> +	pr_debug("had to wait %lu ns for a transition\n", time);
> +#endif

Can't you get rid of this #ifdef DEBUG stuff?  Just
leave out the #ifdef, the compiler will get rid of
the redundant computation.  It's not like a few cycles
matter here anyway.


Segher




More information about the cbe-oss-dev mailing list