Commit 4d6ab218 authored by Du Yilong's avatar Du Yilong Committed by Zheng Zengkai
Browse files

sw64: add set time support for hypervisor based rtc

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56WV8



--------------------------------

Calculate the offset between target time and current time, then
add it to current time in read_time method. with this support,
writable requirements of rtc clock of guest os can be met.

Signed-off-by: default avatarDu Yilong <duyilong@wxiat.com>

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent dc3c20f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment