summaryrefslogtreecommitdiffstats
path: root/common/version.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-09-30 08:27:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-30 10:44:15 +0200
commit8af0569b7bfbc1162f4de7a77a77432de2286055 (patch)
tree62c3e024f09e90818f2a45a8a0f67633a1e182ff /common/version.c
parent96cae61eba199b9c3f5451f293cf60db2b535164 (diff)
downloadbarebox-8af0569b7bfbc1162f4de7a77a77432de2286055.tar.gz
barebox-8af0569b7bfbc1162f4de7a77a77432de2286055.tar.xz
clock: make get_time_ns() safe to be called without clocksource
make it possible to call get_time_ns() before the clocksource has been registered. Just return 0 in this case which is still better than crashing the system. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/version.c')
0 files changed, 0 insertions, 0 deletions