linux-mips
[Top] [All Lists]

[PATCH 2.6.9] Export phys_cpu_present_map

To: linux-mips@linux-mips.org
Subject: [PATCH 2.6.9] Export phys_cpu_present_map
From: Tom Rini <trini@kernel.crashing.org>
Date: Wed, 20 Oct 2004 10:16:26 -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.6+20040907i
In net/ipv6/icmp.c::icmpv6_init() there is a call to cpu_possible()
which preprocesses down to "test_bit(((i)), (phys_cpu_present_map).bits)"
If ipv6 is a module, phys_cpu_present_map (or cpu_possible_map which is
defined t phys_cpu_present_map) needs to be exported.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>

--- linux-2.6.9.orig/arch/mips/kernel/smp.c
+++ linux-2.6.9/arch/mips/kernel/smp.c
@@ -44,6 +44,7 @@ cpumask_t cpu_online_map;             /* Bitmask of
 int __cpu_number_map[NR_CPUS];         /* Map physical to logical */
 int __cpu_logical_map[NR_CPUS];                /* Map logical to physical */
 
+EXPORT_SYMBOL(phys_cpu_present_map);
 EXPORT_SYMBOL(cpu_online_map);
 
 cycles_t cacheflush_time;

-- 
Tom Rini
http://gate.crashing.org/~trini/

<Prev in Thread] Current Thread [Next in Thread>