Skip to contentSkip to conversation

x86_64: Fix warning in genapic

PATCH New Andi Kleen 1 participant 1 message Oct 29, 2004

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 x86_64: Fix warning in genapic

Straight forward patch to remove a warning in genapic about a unused function.

Independently done by Chris Wright too.

arch/x86_64/kernel/genapic_cluster.c +0 -8
Index: linux/arch/x86_64/kernel/genapic_cluster.c
===================================================================
@@ -57,14 +57,6 @@
 	apic_write_around(APIC_LDR, val);
 }
 
-static int cluster_cpu_present_to_apicid(int mps_cpu)
-{
-	if ((unsigned)mps_cpu < NR_CPUS)
-		return (int)bios_cpu_apicid[mps_cpu];
-	else
-		return BAD_APICID;
-}
-
 /* Start with all IRQs pointing to boot CPU.  IRQ balancing will shift them. */
 
 static cpumask_t cluster_target_cpus(void)