+12
−16
Loading
hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBV6W4 -------------------------------- When the RTC_SET_TIME and RTC_RD_TIME threads run in parallel, there is no guarantee that uie_rtctimer.enabled is equal to the previously read uie when executing rtc->ops->set_time. Fix this by keeping reading uie state, disabling uie, setting rtc time and enabling uie in critical sections. Fixes: 7e7c005b ("rtc: disable uie before setting time and enable after") Signed-off-by:Yu Liao <liaoyu15@huawei.com> Signed-off-by:
Xiongfeng Wang <wangxiongfeng2@huawei.com>