1 /*****************************************************************************/
3 * \file input/lib/src/emul_time.c
4 * \brief L4INPUT: Linux time emulation
7 * \author Christian Helmuth <ch12@os.inf.tu-dresden.de>
8 * \author Frank Mehnert <fm3@os.inf.tu-dresden.de>
12 * (c) 2007-2009 Author(s)
13 * economic rights: Technische Universität Dresden (Germany)
15 * This file is part of TUD:OS and distributed under the terms of the
16 * GNU General Public License 2.
17 * Please see the COPYING-GPL-2 file for details.
21 #if !defined(ARCH_arm) && !defined(ARCH_sparc)
22 #include <l4/util/rdtsc.h> /* XXX x86 specific */
24 #include <l4/util/util.h>
27 #include <asm/delay.h>
30 void udelay(unsigned long usecs)
33 l4_sleep(usecs/1000); // XXX
35 l4_busy_wait_us(usecs);