|
|
| File: [Development] / linux-2.6-xfs / arch / um / sys-x86_64 / delay.c (download)
Revision 1.3, Fri May 4 16:01:13 2007 UTC (10 years, 5 months ago) by tes.longdrop.melbourne.sgi.com
Merge up to 2.6.21 Merge of 2.6.x-xfs-melb:linux:28510a by kenmcd. |
/*
* Copyright 2003 PathScale, Inc.
* Copied from arch/x86_64
*
* Licensed under the GPL
*/
#include <linux/module.h>
#include <linux/delay.h>
#include <asm/processor.h>
#include <asm/param.h>
void __delay(unsigned long loops)
{
unsigned long i;
for(i = 0; i < loops; i++)
cpu_relax();
}
void __udelay(unsigned long usecs)
{
unsigned long i, n;
n = (loops_per_jiffy * HZ * usecs) / MILLION;
for(i=0;i<n;i++)
cpu_relax();
}
EXPORT_SYMBOL(__udelay);