RTC: time drifting caused by system suspend/resume
authorFei Yang <fei.yang@intel.com>
Fri, 27 Jan 2012 17:40:53 +0000 (09:40 -0800)
committerbuildbot <buildbot@intel.com>
Wed, 15 Feb 2012 03:13:39 +0000 (19:13 -0800)
commit0e7f594bc520ac85c32975c7e88692091abf4939
treed985d7902ddc79b6dde8332ef905f13ef70f7ea6
parent776c31b6692558b3aafe13155b807e36bd5306a9
RTC: time drifting caused by system suspend/resume

BZ: 20145

RTC interface provides time in second granularity, this causes half
second error accumulation each time system goes in and out of
suspension.
Change ported from commit 641a260ee5342ff42bdd500f93af5083c096f6f4
in UMG 2.6.35 tree.
Another problem fixed in this patch is that "rtc_mrst" platform device
gets registered twice in arch/x86/platform/mrst/vrtc.c and
drivers/rtc/rtc-mrst.c respectively, this would cause a failure for
the second platform device registration. Remove the one in vrtc.c

Change-Id: I9ea350f1f299033bb88e5a19b20caf71b79fec18
Signed-off-by: Fei Yang <fei.yang@intel.com>
Signed-off-by: ShuoX Liu <shuox.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/33112
Tested-by: Ng, Cheon-woei <cheon-woei.ng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
arch/x86/platform/intel-mid/intel_mid_vrtc.c
drivers/rtc/class.c