Changed udelay in delay_tsc to be more be more considerate of single
processor environments. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2009 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -159,7 +159,11 @@ void udelay(unsigned us)
|
||||
count = rdtscll();
|
||||
stop = clocks + count;
|
||||
while(stop > count) {
|
||||
#ifdef CONFIG_SMP
|
||||
#if CONFIG_SMP == 1
|
||||
cpu_relax();
|
||||
#endif
|
||||
#endif
|
||||
count = rdtscll();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user