summaryrefslogtreecommitdiffstats
path: root/hwclock/hwclock.c
diff options
context:
space:
mode:
authorKarel Zak2008-08-12 13:58:51 +0200
committerKarel Zak2008-08-13 11:43:59 +0200
commit982a4a5d98c7034004ec04bff7faea6e1dfcf131 (patch)
tree2325a4dffb5518397868159468bbdd32cfcefbdc /hwclock/hwclock.c
parenthwclock: use carefully synchronize_to_clock_tick() return codes (diff)
downloadkernel-qcow2-util-linux-982a4a5d98c7034004ec04bff7faea6e1dfcf131.tar.gz
kernel-qcow2-util-linux-982a4a5d98c7034004ec04bff7faea6e1dfcf131.tar.xz
kernel-qcow2-util-linux-982a4a5d98c7034004ec04bff7faea6e1dfcf131.zip
hwclock: use time limit for synchronization busy wait
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'hwclock/hwclock.c')
-rw-r--r--hwclock/hwclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c
index 82da273df..c08ae3f5e 100644
--- a/hwclock/hwclock.c
+++ b/hwclock/hwclock.c
@@ -182,7 +182,7 @@ read_date_from_file (struct tm *tm) {
write_date_to_file (tm);
}
-static double
+double
time_diff(struct timeval subtrahend, struct timeval subtractor) {
/*---------------------------------------------------------------------------
The difference in seconds between two times in "timeval" format.