]> git.proxmox.com Git - mirror_qemu.git/blobdiff - osdep.h
Expose thread_id in info cpus
[mirror_qemu.git] / osdep.h
diff --git a/osdep.h b/osdep.h
index 8bd30d764d2a4ed922b4de3383d0502980636185..748df5416ba26edb4258fa2aaab3afc999e70e15 100644 (file)
--- a/osdep.h
+++ b/osdep.h
 #define MAX(a, b) (((a) > (b)) ? (a) : (b))
 #endif
 
+#ifndef DIV_ROUND_UP
+#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
+#endif
+
 #ifndef ARRAY_SIZE
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #endif
@@ -126,5 +130,6 @@ void qemu_vfree(void *ptr);
 int qemu_madvise(void *addr, size_t len, int advice);
 
 int qemu_create_pidfile(const char *filename);
+int qemu_get_thread_id(void);
 
 #endif