[PATCH] uml: s390 preparation, delay moved to arch
[linux-2.6/kvm.git] / arch / um / sys-x86_64 / delay.c
blob651332aeec22db781a0af12181210515b788a990
1 /*
2 * Copyright 2003 PathScale, Inc.
3 * Copied from arch/x86_64
5 * Licensed under the GPL
6 */
8 #include "linux/delay.h"
9 #include "asm/processor.h"
10 #include "asm/param.h"
12 void __delay(unsigned long loops)
14 unsigned long i;
16 for(i = 0; i < loops; i++) ;
19 void __udelay(unsigned long usecs)
21 int i, n;
23 n = (loops_per_jiffy * HZ * usecs) / MILLION;
24 for(i=0;i<n;i++) ;
27 void __const_udelay(unsigned long usecs)
29 int i, n;
31 n = (loops_per_jiffy * HZ * usecs) / MILLION;
32 for(i=0;i<n;i++) ;
36 * Overrides for Emacs so that we follow Linus's tabbing style.
37 * Emacs will notice this stuff at the end of the file and automatically
38 * adjust the settings for this buffer only. This must remain at the end
39 * of the file.
40 * ---------------------------------------------------------------------------
41 * Local variables:
42 * c-file-style: "linux"
43 * End: