ntp: fix ADJ_OFFSET_SS_READ bug and do_adjtimex() cleanup
authorRoman Zippel <zippel@linux-m68k.org>
Wed, 20 Aug 2008 23:46:08 +0000 (16:46 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 22 Aug 2008 04:40:18 +0000 (06:40 +0200)
commit916c7a855174e3b53d182b97a26b2e27a29726a1
tree791b9975b6de18f0120d962b08f74f088386b44d
parent6a55617ed5d1aa62b850de2cf66f5ede2eef4825
ntp: fix ADJ_OFFSET_SS_READ bug and do_adjtimex() cleanup

Thanks to the review by Michael Kerrisk a bug in the recent
ADJ_OFFSET_SS_READ option was discovered, where the ntp time_offset was
inadvertently set by it.  This fixes this by making the adjtime code
more separate from the ntp_adjtime code (both of which really want to
be separate syscalls).

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/timex.h
kernel/time/ntp.c