ntp: Introduce and use SECS_PER_DAY macro instead of 86400
authorJohn Stultz <[email protected]>
Thu, 11 Jun 2015 22:54:54 +0000 (15:54 -0700)
committerThomas Gleixner <[email protected]>
Fri, 12 Jun 2015 09:15:49 +0000 (11:15 +0200)
commit90bf361ceae28dee50a584c3dd4c1a96178d982c
tree159e22aa66e55580668b380678dc1966225be2cd
parentd151832650ed98961a5650e73e85c349ad7839cb
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 <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Daniel Bristot de Oliveira <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Jiri Bohac <[email protected]>
Cc: Ingo Molnar <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
kernel/time/ntp.c