- See Issue Tracker id-6 "lnxi-patch-6-replacement"

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2070 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Jason Schildt 2005-10-25 21:28:41 +00:00
parent c0d2d78397
commit bc6281a8fe
2 changed files with 1 additions and 4 deletions

View File

@ -160,11 +160,7 @@ void udelay(unsigned us)
count = rdtscll(); count = rdtscll();
stop = clocks + count; stop = clocks + count;
while(stop > count) { while(stop > count) {
#ifdef CONFIG_SMP
#if CONFIG_SMP == 1
cpu_relax(); cpu_relax();
#endif
#endif
count = rdtscll(); count = rdtscll();
} }
} }

View File

@ -19,6 +19,7 @@ typedef struct { int gcc_is_buggy; } spinlock_t;
#define spin_unlock_wait(lock) do {} while(0) #define spin_unlock_wait(lock) do {} while(0)
#define spin_lock(lock) do {} while(0) #define spin_lock(lock) do {} while(0)
#define spin_unlock(lock) do {} while(0) #define spin_unlock(lock) do {} while(0)
#define cpu_relax() do {} while(0)
#endif #endif
#endif /* SMP_SPINLOCK_H */ #endif /* SMP_SPINLOCK_H */