[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] stubs: Add timer.c
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH 4/6] stubs: Add timer.c |
Date: |
Wed, 20 Aug 2014 18:01:25 +0800 |
Add timer functions that are used in util/throttle.c.
Signed-off-by: Fam Zheng <address@hidden>
---
stubs/Makefile.objs | 1 +
stubs/timer.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 stubs/timer.c
diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
index f5d2cdd..1d433f3 100644
--- a/stubs/Makefile.objs
+++ b/stubs/Makefile.objs
@@ -42,3 +42,4 @@ stub-obj-y += kvm.o
stub-obj-y += qmp_pc_dimm_device_list.o
stub-obj-y += iohandler.o
stub-obj-y += openpty.o
+stub-obj-y += timer.o
diff --git a/stubs/timer.c b/stubs/timer.c
new file mode 100644
index 0000000..17e25c9
--- /dev/null
+++ b/stubs/timer.c
@@ -0,0 +1,44 @@
+/*
+ * timer stub functions
+ *
+ * Copyright Red Hat, Inc., 2014
+ *
+ * Author: Fam Zheng <address@hidden>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#include "qemu/timer.h"
+
+void timer_del(QEMUTimer *ts)
+{
+ abort();
+}
+
+void timer_init(QEMUTimer *ts,
+ QEMUTimerList *timer_list, int scale,
+ QEMUTimerCB *cb, void *opaque)
+{
+ abort();
+}
+
+void timer_free(QEMUTimer *ts)
+{
+ abort();
+}
+
+int64_t qemu_clock_get_ns(QEMUClockType type)
+{
+ abort();
+}
+
+void timer_mod(QEMUTimer *ts, int64_t expire_time)
+{
+ abort();
+}
+
+bool timer_pending(QEMUTimer *ts)
+{
+ abort();
+}
--
2.0.3
[Qemu-devel] [PATCH 4/6] stubs: Add timer.c,
Fam Zheng <=
[Qemu-devel] [PATCH 1/6] build-sys: Move fifio8 to hw/, Fam Zheng, 2014/08/20
[Qemu-devel] [PATCH 5/6] build-sys: Change libqemuutil.a to qemuutil.o and link whole object, Fam Zheng, 2014/08/20
[Qemu-devel] [PATCH 3/6] stubs: Add openpty.c, Fam Zheng, 2014/08/20