Re: [PATCH 1/3] timekeeping: Add persistent_clock_exist flag

From: John Stultz
Date: Thu Dec 13 2012 - 20:20:27 EST


On 12/12/2012 06:05 PM, Feng Tang wrote:
In current kernel, there are several places which need to check
whether there is a persistent clock for the platform. Current check
is done by calling the read_persistent_clock() and validating the
return value.

Add such a flag to make code more readable and call read_persistent_clock()
only once for all the checks.
Sorry.. What the actual benefit of this patch set? (Usually with changelogs its better to explain why you're doing something, rather then just what you're doing.)

Maybe I'm missing something, but it seems this doesn't change the resulting logic of the code, does it? As I thought we already check read_persistent_clocks() output (and make sure its null) before using the rtc HCTOSYS_DEVICE.

thanks
-john

--
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/