mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/hvm/rtc: always deassert the IRQ line when clearing REG_C.IRQF
Even in no-ack mode, there's no reason to leave the line asserted
after an explicit ack of the interrupt.
Furthermore, rtc_update_irq() is an unconditional noop having just cleared
REG_C.
Signed-off-by: Tim Deegan <tim@xen.org>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 6d27a53772
master date: 2014-02-25 09:30:21 +0100
This commit is contained in:
1 parent
0424cb9a34
commit
cb99d5a31e
1 file changed
+1
-2
@@ -673,9 +673,8 @@ static uint32_t rtc_ioport_read(RTCState *s, uint32_t addr)
|
||||
check_for_pf_ticks(s);
|
||||
ret = s->hw.cmos_data[s->hw.cmos_index];
|
||||
s->hw.cmos_data[RTC_REG_C] = 0x00;
|
||||
if ( (ret & RTC_IRQF) && !rtc_mode_is(s, no_ack) )
|
||||
if ( ret & RTC_IRQF )
|
||||
hvm_isa_irq_deassert(d, RTC_IRQ);
|
||||
rtc_update_irq(s);
|
||||
check_update_timer(s);
|
||||
alarm_timer_update(s);
|
||||
s->pt_dead_ticks = 0;
|
||||
|
||||