Skip to contentSkip to conversation

ia64 iosapic: ignore offline CPUs when routing interrupts

PATCH New Bjorn Helgaas 1 participant 1 message Nov 22, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ia64 iosapic: ignore offline CPUs when routing interrupts

Ignore offline CPUs when registering IOSAPIC interrupts. We previously directed interrupts even to offline CPUs, which means that if you have some unused CPUs (e.g., you used "maxcpus="), some interrupts won't work.

This really hurts because distro installs typically use "maxcpus=1".

Ignore offline CPUs when registering IOSAPIC interrupts. We previously directed interrupts even to offline CPUs, which means that if you have some unused CPUs (e.g., you used "maxcpus="), some interrupts won't work.

This really hurts because distro installs typically use "maxcpus=1".

Patch by Alex Williamson.

===== arch/ia64/kernel/iosapic.c 1.48 vs edited =====

arch/ia64/kernel/iosapic.c +6 -1
@@ -521,7 +521,12 @@
 			goto skip_numa_setup;
 
 		cpu_mask = node_to_cpumask(iosapic_lists[iosapic_index].node);
-		
+
+		for_each_cpu_mask(numa_cpu, cpu_mask) {
+			if (!cpu_online(numa_cpu))
+				cpu_clear(numa_cpu, cpu_mask);
+		}
+
 		num_cpus = cpus_weight(cpu_mask);
 
 		if (!num_cpus)