patch-2.3.99-pre6 linux/lib/brlock.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/timer.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Apr 24 13:59:56 2000
- Orig file:
v2.3.99-pre5/linux/lib/brlock.c
- Orig date:
Thu Mar 2 14:36:23 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/lib/brlock.c linux/lib/brlock.c
@@ -25,7 +25,7 @@
int i;
for (i = 0; i < smp_num_cpus; i++)
- write_lock(__brlock_array[idx] + i);
+ write_lock(__brlock_array[idx] + cpu_logical_map(i));
}
void __br_write_unlock (enum brlock_indices idx)
@@ -33,7 +33,7 @@
int i;
for (i = 0; i < smp_num_cpus; i++)
- write_unlock(__brlock_array[idx] + i);
+ write_unlock(__brlock_array[idx] + cpu_logical_map(i));
}
#else /* ! __BRLOCK_USE_ATOMICS */
@@ -51,7 +51,7 @@
spin_lock(&__br_write_locks[idx].lock);
again:
for (i = 0; i < smp_num_cpus; i++)
- if (__brlock_array[i][idx] != 0)
+ if (__brlock_array[cpu_logical_map(i)][idx] != 0)
goto again;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)