[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 02/10] RTC: Rename rtc_timer_update
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH v3 02/10] RTC: Rename rtc_timer_update |
Date: |
Thu, 2 Aug 2012 18:04:05 +0200 |
From: Yang Zhang <address@hidden>
Signed-off-by: Yang Zhang <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/mc146818rtc.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/mc146818rtc.c b/hw/mc146818rtc.c
index 6e5b2f0..b99f4d3 100644
--- a/hw/mc146818rtc.c
+++ b/hw/mc146818rtc.c
@@ -110,7 +110,7 @@ static void rtc_coalesced_timer(void *opaque)
}
#endif
-static void rtc_timer_update(RTCState *s, int64_t current_time)
+static void periodic_timer_update(RTCState *s, int64_t current_time)
{
int period_code, period;
int64_t cur_clock, next_irq_clock;
@@ -148,7 +148,7 @@ static void rtc_periodic_timer(void *opaque)
{
RTCState *s = opaque;
- rtc_timer_update(s, s->next_periodic_time);
+ periodic_timer_update(s, s->next_periodic_time);
s->cmos_data[RTC_REG_C] |= REG_C_PF;
if (s->cmos_data[RTC_REG_B] & REG_B_PIE) {
s->cmos_data[RTC_REG_C] |= REG_C_IRQF;
@@ -207,7 +207,7 @@ static void cmos_ioport_write(void *opaque, uint32_t addr,
uint32_t data)
/* UIP bit is read only */
s->cmos_data[RTC_REG_A] = (data & ~REG_A_UIP) |
(s->cmos_data[RTC_REG_A] & REG_A_UIP);
- rtc_timer_update(s, qemu_get_clock_ns(rtc_clock));
+ periodic_timer_update(s, qemu_get_clock_ns(rtc_clock));
break;
case RTC_REG_B:
if (data & REG_B_SET) {
@@ -221,7 +221,7 @@ static void cmos_ioport_write(void *opaque, uint32_t addr,
uint32_t data)
}
}
s->cmos_data[RTC_REG_B] = data;
- rtc_timer_update(s, qemu_get_clock_ns(rtc_clock));
+ periodic_timer_update(s, qemu_get_clock_ns(rtc_clock));
break;
case RTC_REG_C:
case RTC_REG_D:
@@ -550,7 +550,7 @@ static void rtc_notify_clock_reset(Notifier *notifier, void
*data)
rtc_set_date_from_host(&s->dev);
s->next_second_time = now + (get_ticks_per_sec() * 99) / 100;
qemu_mod_timer(s->second_timer2, s->next_second_time);
- rtc_timer_update(s, now);
+ periodic_timer_update(s, now);
#ifdef TARGET_I386
if (s->lost_tick_policy == LOST_TICK_SLEW) {
rtc_coalesced_timer_update(s);
--
1.7.10.4
- [Qemu-devel] [PATCH v3 00/10] Remove periodic wakeup from RTC timer, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 01/10] RTC: Remove the logic to update time format when DM bit changed, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 04/10] RTC: Update interrupt state when interrupts are masked/unmasked, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 02/10] RTC: Rename rtc_timer_update,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v3 03/10] RTC: introduce RTC_CLOCK_RATE, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 05/10] vmstate: add VMSTATE_TIMER_V, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 06/10] RTC: Update the RTC clock only when reading it, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 08/10] RTC: Do not fire timer periodically to catch next alarm, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 07/10] RTC: Add divider reset support, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 09/10] RTC: Get and set time without going through s->current_tm, Paolo Bonzini, 2012/08/02
- [Qemu-devel] [PATCH v3 10/10] RTC: Remove the current_tm field, Paolo Bonzini, 2012/08/02