Commit 2268bb30 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] add clock_was_set() to all architectures

From: Anton Blanchard <anton@samba.org>

Add clock_was_set to all architectures.  I'm disappointed this wasnt done by
whoever wrote the code.

(It is a callback which the arch-specific RTC-updating code must make when
someone sets the time).
parent 580c4c3b
......@@ -503,6 +503,7 @@ do_settimeofday(struct timespec *tv)
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -179,6 +179,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -108,6 +108,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
local_irq_restore(flags);
clock_was_set();
return 0;
}
......
......@@ -139,6 +139,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -174,6 +174,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -199,6 +199,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -132,7 +132,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -230,6 +230,7 @@ do_settimeofday (struct timespec *tv)
time_esterror = NTP_PHASE_LIMIT;
}
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
EXPORT_SYMBOL(do_settimeofday);
......
......@@ -294,6 +294,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irqrestore(&xtime_lock, flags);
clock_was_set();
return 0;
}
......
......@@ -418,6 +418,7 @@ int do_settimeofday(struct timespec *tv)
}
write_sequnlock_irqrestore(&xtime_lock, flags);
clock_was_set();
return 0;
}
......
......@@ -142,6 +142,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -535,6 +535,7 @@ int do_settimeofday(struct timespec *tv)
write_seqlock_irq(&xtime_lock);
ret = bus_do_settimeofday(tv);
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return ret;
}
......
......@@ -1126,6 +1126,7 @@ int do_settimeofday(struct timespec *tv)
time_maxerror = NTP_PHASE_LIMIT;
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq(&xtime_lock);
clock_was_set();
return 0;
}
......
......@@ -93,6 +93,7 @@ void do_gettimeofday(struct timeval *tv)
gettimeofday(tv, NULL);
timeradd(tv, &local_offset, tv);
time_unlock(flags);
clock_was_set();
}
EXPORT_SYMBOL(do_gettimeofday);
......
......@@ -193,6 +193,7 @@ int do_settimeofday(struct timespec *tv)
time_esterror = NTP_PHASE_LIMIT;
write_sequnlock_irq (&xtime_lock);
clock_was_set();
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment