Fix bug introduced in SVN rev 194985. When calling pic_assign_cpu()

for pre-bound IRQs during boot, submit there LAPIC ID, same as in other
places, not CPU ID.
This commit is contained in:
mav 2010-06-14 07:38:53 +00:00
parent ea954fa396
commit c8e17adfdc
2 changed files with 2 additions and 2 deletions

View File

@ -529,7 +529,7 @@ intr_shuffle_irqs(void *arg __unused)
*/
if (isrc->is_event->ie_cpu != NOCPU)
(void)isrc->is_pic->pic_assign_cpu(isrc,
isrc->is_event->ie_cpu);
cpu_apic_ids[isrc->is_event->ie_cpu]);
else if (isrc->is_pic->pic_assign_cpu(isrc,
cpu_apic_ids[current_cpu]) == 0)
(void)intr_next_cpu();

View File

@ -502,7 +502,7 @@ intr_shuffle_irqs(void *arg __unused)
*/
if (isrc->is_event->ie_cpu != NOCPU)
(void)isrc->is_pic->pic_assign_cpu(isrc,
isrc->is_event->ie_cpu);
cpu_apic_ids[isrc->is_event->ie_cpu]);
else if (isrc->is_pic->pic_assign_cpu(isrc,
cpu_apic_ids[current_cpu]) == 0)
(void)intr_next_cpu();