timekeeping: Avoid adjust kernel time once hwclock kept in UTC time
authorDong Zhu <bluezhudong@gmail.com>
Thu, 6 Dec 2012 14:03:34 +0000 (22:03 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 15 Mar 2013 23:50:12 +0000 (16:50 -0700)
commitc30bd09915ea243603d7803d53de890c4a6f1474
tree83223e29cf442b17874e3a343b05f3bff8e86eb5
parent7c6baa304b841673d3a55ea4fcf9a5cbf7a1674b
timekeeping: Avoid adjust kernel time once hwclock kept in UTC time

If the Hardware Clock kept in local time,kernel will adjust the time
to be UTC time.But if Hardware Clock kept in UTC time,system will make
a dummy settimeofday call first (sys_tz.tz_minuteswest = 0) to make sure
the time is not shifted,so at this point I think maybe it is not necessary
to set the kernel time once the sys_tz.tz_minuteswest is zero.

Signed-off-by: Dong Zhu <bluezhudong@gmail.com>
[jstultz: Updated to merge with conflicting changes ]
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time.c