]> git.baikalelectronics.ru Git - kernel.git/commit
timekeeping: Prevent false warning when persistent clock is not available
authorPavel Tatashin <pasha.tatashin@oracle.com>
Wed, 25 Jul 2018 20:00:18 +0000 (16:00 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 30 Jul 2018 17:32:29 +0000 (19:32 +0200)
commit8dba28569e34de4d50ed37c507091664bf63e8b2
tree19b1f36de78935005c97516a97f2ab77ea06fc30
parent81f6686e331378134b19c999058aa59849c47c62
timekeeping: Prevent false warning when persistent clock is not available

On arches with no persistent clock a message like this is printed during
boot:

[    0.000000] Persistent clock returned invalid value

The value is not invalid: Zero means that no persistent clock is available
and the absence of persistent clock should be quietly accepted.

Fixes: b1bf623de1ab ("timekeeping: Replace read_boot_clock64() with read_persistent_wall_and_boot_offset()")
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: steven.sistare@oracle.com
Cc: daniel.m.jordan@oracle.com
Cc: sboyd@kernel.org
Cc: john.stultz@linaro.org
Link: https://lkml.kernel.org/r/20180725200018.23722-1-pasha.tatashin@oracle.com
kernel/time/timekeeping.c