Skip to contentSkip to conversation

linux-user: Remove #if 0'd cpu_get_real_ticks() definition

PATCH Applied Peter Maydell 2 participants 2 messages Aug 20, 2012 – Aug 24, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Remove #if 0'd cpu_get_real_ticks() definition

Remove the cpu_get_real_ticks() definition from linux-user/main.c. This has been disabled via #if 0 and unused since commit 1dce7c3c22 in 2006; the definitions we actually use are in qemu-timer.h.

---
 linux-user/main.c |   13 -------------
 1 file changed, 13 deletions(-)
linux-user/main.c +0 -13
index 7dea084..0659ae8 100644
@@ -89,19 +89,6 @@ int cpu_get_pic_interrupt(CPUX86State *env)
 }
 #endif
 
-/* timers for rdtsc */
-
-#if 0
-
-static uint64_t emu_time;
-
-int64_t cpu_get_real_ticks(void)
-{
-    return emu_time++;
-}
-
-#endif
-
 #if defined(CONFIG_USE_NPTL)
 /***********************************************************/
 /* Helper routines for implementing atomic operations.  */
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 8 lines · Peter Maydell

Remove the cpu_get_real_ticks() definition from linux-user/main.c. This has been disabled via #if 0 and unused since commit 1dce7c3c22 in 2006; the definitions we actually use are in qemu-timer.h.

---
 linux-user/main.c |   13 -------------
 1 file changed, 13 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan