patch-2.2.0-pre2 linux/arch/ppc/lib/locks.c
Next file: linux/arch/ppc/pmac_defconfig
Previous file: linux/arch/ppc/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed Dec 30 10:55:07 1998
- Orig file:
v2.2.0-pre1/linux/arch/ppc/lib/locks.c
- Orig date:
Thu Nov 19 09:56:27 1998
diff -u --recursive --new-file v2.2.0-pre1/linux/arch/ppc/lib/locks.c linux/arch/ppc/lib/locks.c
@@ -1,5 +1,5 @@
/*
- * $Id: locks.c,v 1.20 1998/10/08 01:17:32 cort Exp $
+ * $Id: locks.c,v 1.21 1998/12/28 10:28:53 paulus Exp $
*
* Locks for smp ppc
*
@@ -18,7 +18,7 @@
#define DEBUG_LOCKS 1
#undef INIT_STUCK
-#define INIT_STUCK 0xffffffff
+#define INIT_STUCK 200000000 /*0xffffffff*/
void _spin_lock(spinlock_t *lock)
{
@@ -76,9 +76,9 @@
lp->owner_pc,lp->lock);
#endif /* DEBUG_LOCKS */
lp->owner_pc = lp->owner_cpu = 0;
- eieio();
- lp->lock = 0;
- eieio();
+ eieio(); /* actually I believe eieio only orders */
+ lp->lock = 0; /* non-cacheable accesses (on 604 at least) */
+ eieio(); /* - paulus. */
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov