patch-2.1.124 linux/arch/sparc64/kernel/smp.c
Next file: linux/arch/sparc64/kernel/sparc64_ksyms.c
Previous file: linux/arch/sparc64/kernel/signal32.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Sun Oct 4 10:22:43 1998
- Orig file:
v2.1.123/linux/arch/sparc64/kernel/smp.c
- Orig date:
Thu Aug 6 14:06:31 1998
diff -u --recursive --new-file v2.1.123/linux/arch/sparc64/kernel/smp.c linux/arch/sparc64/kernel/smp.c
@@ -63,7 +63,7 @@
for (i = 0; i < NR_CPUS; i++)
if(cpu_present_map & (1UL << i))
len += sprintf(buf + len,
- "CPU%d:\t\tonline\n", i
+ "CPU%d:\t\tonline\n", i);
return len;
}
@@ -380,7 +380,7 @@
{
u32 ctx = mm->context & 0x3ff;
- if(mm == current->mm && mm->count == 1) {
+ if(mm == current->mm && atomic_read(&mm->count) == 1) {
if(mm->cpu_vm_mask == (1UL << smp_processor_id()))
goto local_flush_and_out;
return smp_cross_call_avoidance(mm);
@@ -396,7 +396,7 @@
{
u32 ctx = mm->context & 0x3ff;
- if(mm == current->mm && mm->count == 1) {
+ if(mm == current->mm && atomic_read(&mm->count) == 1) {
if(mm->cpu_vm_mask == (1UL << smp_processor_id()))
goto local_flush_and_out;
return smp_cross_call_avoidance(mm);
@@ -413,13 +413,13 @@
{
u32 ctx = mm->context & 0x3ff;
- if(mm == current->mm && mm->count == 1) {
+ if(mm == current->mm && atomic_read(&mm->count) == 1) {
if(mm->cpu_vm_mask == (1UL << smp_processor_id()))
goto local_flush_and_out;
return smp_cross_call_avoidance(mm);
}
#if 0 /* XXX Disabled until further notice... */
- else if(mm->count == 1) {
+ else if(atomic_read(&mm->count) == 1) {
/* Try to handle two special cases to avoid cross calls
* in common scenerios where we are swapping process
* pages out.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov