ntp: Move timex validation to timekeeping do_adjtimex call.
Move logic that does not need the ntp state to be done in the timekeeping do_adjtimex() call. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Richard Cochran <richardcochran@gmail.com> Cc: Prarit Bhargava <prarit@redhat.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
This commit is contained in:
@@ -668,11 +668,6 @@ int __do_adjtimex(struct timex *txc)
|
||||
u32 time_tai, orig_tai;
|
||||
int result;
|
||||
|
||||
/* Validate the data before disabling interrupts */
|
||||
result = ntp_validate_timex(txc);
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
if (txc->modes & ADJ_SETOFFSET) {
|
||||
struct timespec delta;
|
||||
delta.tv_sec = txc->time.tv_sec;
|
||||
|
Reference in New Issue
Block a user