patch-2.4.21 linux-2.4.21/arch/ia64/sn/kernel/sn1/synergy.c
Next file: linux-2.4.21/arch/ia64/sn/kernel/sn2/Makefile
Previous file: linux-2.4.21/arch/ia64/sn/kernel/sn1/sn1_smp.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/ia64/sn/kernel/sn1/synergy.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.20/arch/ia64/sn/kernel/sn1/synergy.c linux-2.4.21/arch/ia64/sn/kernel/sn1/synergy.c
@@ -240,6 +240,7 @@
synergy_perf_t *p;
int checked = 0;
int err = 0;
+ unsigned long flags;
/* bit 45 is enable */
modesel |= (1UL << 45);
@@ -279,7 +280,7 @@
memset(p, 0, sizeof(synergy_perf_t));
p->modesel = modesel;
- spin_lock_irq(&npdap->synergy_perf_lock);
+ spin_lock_irqsave(&npdap->synergy_perf_lock, flags);
if (npdap->synergy_perf_data == NULL) {
/* circular list */
p->next = p;
@@ -290,7 +291,7 @@
p->next = npdap->synergy_perf_data->next;
npdap->synergy_perf_data->next = p;
}
- spin_unlock_irq(&npdap->synergy_perf_lock);
+ spin_unlock_irqrestore(&npdap->synergy_perf_lock, flags);
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)