Fix for SMP irq autoprobe with V2.1.8[0123]

Harald Hoyer (HarryH@Royal.Net)
Sat, 31 Jan 1998 14:56:27 +0100


This is a multi-part message in MIME format.
--------------0C299B7EE1470ADB908AAFDF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

HI,

tracking down the problem the kernels have with auto probing my ide
irqs, I found that, when I change:

arch/i386/kernel/irq.c:

unsigned long probe_irq_on (void)
{
unsigned int i, j, irqs = 0;
unsigned long delay;

/*
* save current irq counts
*/
memcpy(probe_irqs,kstat.irqs,NR_CPUS*NR_IRQS*sizeof(int));

/*
* first, enable any unassigned irqs
*/
for (i = NR_IRQS-1; i > 0; i--) {
if (!irq_action[i]) {
/********************** CHANGED ***************************/
/* spin_lock(&irq_controller_lock); */
spin_lock_irq(&irq_controller_lock);

unmask_irq(i);
irqs |= (1 << i);

/********************** CHANGED ***************************/
/* spin_unlock(&irq_controller_lock); */
spin_unlock_irq(&irq_controller_lock);
}
}

everything seems to work all right. Has this patch some side effects ???

By the way ... how could I tell my 2 Pentium 200 MMX on a Tomcat III to
share the PIIX3 ide0/1 ???

Keep on developing,
Harald

-- 
mailto:HarryH@Royal.Net http://hot.spotline.de
http://home.pages.de/~saturn
___________________________________________________________________________
Computers are like air conditioner. Both stop working, if you open
windows.
--------------0C299B7EE1470ADB908AAFDF
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Harald Hoyer
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard fn: Harald Hoyer n: Hoyer;Harald org: Software Beratung, Erstellung und Vertrieb adr: Alleenstr. 27;;;Asperg;Baden-Württemberg;71679;Germany email;internet: HarryH@Royal.Net title: Software Engineer tel;home: 07141 / 64 10 65 x-mozilla-cpt: ;0 x-mozilla-html: TRUE version: 2.1 end: vcard

--------------0C299B7EE1470ADB908AAFDF--