From: Pekka Enberg Date: Mon, 28 Nov 2011 19:02:19 +0000 (+0200) Subject: kvm tools, rtc: Implement RTC_DAY_OF_WEEK X-Git-Tag: next-20111129~3^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4ed4e6cad3f0748af93c29c7806bbf2e3df7c3e0;p=karo-tx-linux.git kvm tools, rtc: Implement RTC_DAY_OF_WEEK This patch implements support for RTC_DAY_OF_WEEK RTC register. Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/hw/rtc.c b/tools/kvm/hw/rtc.c index 09243437abb9..0dc6223832e0 100644 --- a/tools/kvm/hw/rtc.c +++ b/tools/kvm/hw/rtc.c @@ -54,6 +54,9 @@ static bool cmos_ram_data_in(struct ioport *ioport, struct kvm *kvm, u16 port, v case RTC_HOURS: ioport__write8(data, bin2bcd(tm->tm_hour)); break; + case RTC_DAY_OF_WEEK: + ioport__write8(data, bin2bcd(tm->tm_wday + 1)); + break; case RTC_DAY_OF_MONTH: ioport__write8(data, bin2bcd(tm->tm_mday)); break;