[PATCH 04/13] ARM: pxa: convert sched_clock() to use new infrastructure

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Dec 16 05:05:23 EST 2010


Hello Russell,

a very minor nit ...

On Thu, Dec 16, 2010 at 09:28:48AM +0000, Russell King - ARM Linux wrote:
> +	return cyc_to_sched_clock(&cd, cyc, (u32)~0);
The value of ~0 is compiler implementation defined, so in general
~((u32)0) is saver.  (Though I admit that on arm ~0 will probably always
be -1, still I think using the save construct doesn't hurt here.)

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list