From: Feng Tang Date: Tue, 15 Jan 2013 16:09:47 +0000 (+0800) Subject: timekeeping: Add persistent_clock_exist flag X-Git-Tag: v3.9-rc1~170^2~5^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ade30692dc9680bfc95700d794818fa3f754ac;p=pandora-kernel.git timekeeping: Add persistent_clock_exist flag 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 its return value. So one optimization is to do the check only once in timekeeping_init(), and use a flag persistent_clock_exist to record it. v2: Add a has_persistent_clock() helper function, as suggested by John. Cc: Thomas Gleixner Cc: John Stultz Signed-off-by: Feng Tang Signed-off-by: John Stultz --- Reading git-diff-tree failed