Projects
home:dongzhihai
qemu
_service:tar_scm:freeclock-set-rtc_date_diff-fo...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:freeclock-set-rtc_date_diff-for-X86.patch of Package qemu
From 0a0010fe0656a63e82aea495ab0a59145d3b5750 Mon Sep 17 00:00:00 2001 From: "shenghualong@huawei.com" <shenghualong@huawei.com> Date: Thu, 21 Mar 2024 12:26:38 +0800 Subject: [PATCH] freeclock: set rtc_date_diff for X86 Set rtc_date_diff in mc146818rtc. Signed-off-by: l00500761 <liuxiangdong5@huawei.com> Signed-off-by: zhangxinhao <zhangxinhao1@huawei.com> Signed-off-by: Yuan Zhang <zhangyuan162@huawei.com> --- hw/rtc/mc146818rtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/rtc/mc146818rtc.c b/hw/rtc/mc146818rtc.c index 2d391a8396..e61c76d060 100644 --- a/hw/rtc/mc146818rtc.c +++ b/hw/rtc/mc146818rtc.c @@ -606,7 +606,8 @@ static void rtc_set_time(MC146818RtcState *s) s->base_rtc = mktimegm(&tm); s->last_update = qemu_clock_get_ns(rtc_clock); - qapi_event_send_rtc_change(qemu_timedate_diff(&tm), qom_path); + set_rtc_date_diff(qemu_timedate_diff(&tm)); + qapi_event_send_rtc_change(get_rtc_date_diff(), qom_path); } static void rtc_set_cmos(MC146818RtcState *s, const struct tm *tm) -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2