]> git.baikalelectronics.ru Git - kernel.git/commit
ntp: Introduce and use SECS_PER_DAY macro instead of 86400
authorJohn Stultz <john.stultz@linaro.org>
Thu, 11 Jun 2015 22:54:54 +0000 (15:54 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 12 Jun 2015 09:15:49 +0000 (11:15 +0200)
commit7a67a5b3efc67bbb3f85b1e26173a6bec731155b
tree159e22aa66e55580668b380678dc1966225be2cd
parentf420aa17f2fde0fad99962e6b99b762f9a0396aa
ntp: Introduce and use SECS_PER_DAY macro instead of 86400

Currently the leapsecond logic uses what looks like magic values.

Improve this by defining SECS_PER_DAY and using that macro
to make the logic more clear.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Jiri Bohac <jbohac@suse.cz>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1434063297-28657-3-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/ntp.c