From: Xuebing Wang <xbing6@gmail.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, xbing6@gmail.com, stefanha@redhat.com,
alex@alex.org.uk
Subject: [Qemu-devel] [PATCH 5/7] timer: move QEMUTimer related functions together
Date: Tue, 25 Feb 2014 21:36:52 +0800 [thread overview]
Message-ID: <1393335414-27589-6-git-send-email-xbing6@gmail.com> (raw)
In-Reply-To: <1393335414-27589-1-git-send-email-xbing6@gmail.com>
Signed-off-by: Xuebing Wang <xbing6@gmail.com>
---
qemu-timer.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/qemu-timer.c b/qemu-timer.c
index 6f13a76..c9801da 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -548,6 +548,9 @@ int qemu_poll_ns(GPollFD *fds, guint nfds, int64_t timeout)
#endif
}
+/*
+ * QEMUTimer
+ */
void timer_init(QEMUTimer *ts,
QEMUTimerList *timer_list, int scale,
@@ -675,6 +678,11 @@ bool timer_expired(QEMUTimer *timer_head, int64_t current_time)
return timer_expired_ns(timer_head, current_time * timer_head->scale);
}
+uint64_t timer_expire_time_ns(QEMUTimer *ts)
+{
+ return timer_pending(ts) ? ts->expire_time : -1;
+}
+
void init_clocks(void)
{
QEMUClockType type;
@@ -686,8 +694,3 @@ void init_clocks(void)
prctl(PR_SET_TIMERSLACK, 1, 0, 0, 0);
#endif
}
-
-uint64_t timer_expire_time_ns(QEMUTimer *ts)
-{
- return timer_pending(ts) ? ts->expire_time : -1;
-}
--
1.7.9.5
next prev parent reply other threads:[~2014-02-25 13:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 13:36 [Qemu-devel] [PATCH 0/7] timer: move APIs together according to their category Xuebing Wang
2014-02-25 13:36 ` [Qemu-devel] [PATCH 1/7] timer: move QEMUTimerList functions together Xuebing Wang
2014-02-25 13:36 ` [Qemu-devel] [PATCH 2/7] timer: make QEMUTimerList functions private (remove from APIs) Xuebing Wang
2014-02-25 13:36 ` [Qemu-devel] [PATCH 3/7] timer: move QEMUClockType related functions together Xuebing Wang
2014-02-25 13:36 ` [Qemu-devel] [PATCH 4/7] timer: move QEMUTimerListGroup function to be below QEMUClockType Xuebing Wang
2014-02-25 13:36 ` Xuebing Wang [this message]
2014-02-25 13:36 ` [Qemu-devel] [PATCH 6/7] timer: move general utility functions together Xuebing Wang
2014-02-25 13:36 ` [Qemu-devel] [PATCH 7/7] timer: clean unnecessary #include and use minimal required #include Xuebing Wang
2014-02-25 16:25 ` [Qemu-devel] [PATCH 0/7] timer: move APIs together according to their category Alex Bligh
2014-02-25 16:38 ` Paolo Bonzini
2014-02-27 21:52 ` Alex Bligh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1393335414-27589-6-git-send-email-xbing6@gmail.com \
--to=xbing6@gmail.com \
--cc=alex@alex.org.uk \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).