[NETFILTER]: ip6_tables: use raw_smp_processor_id() in do_add_counters()
authorPatrick McHardy <kaber@trash.net>
Tue, 18 Dec 2007 05:52:52 +0000 (21:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:41 +0000 (14:58 -0800)
Use raw_smp_processor_id() in do_add_counters() as in ip_tables.c.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/ip6_tables.c

index fc4c62fddfe7faf293339bcd72c617566397809b..d910d56d22da16151c6162e1c4ff5a29ca2095ef 100644 (file)
@@ -1420,7 +1420,7 @@ do_add_counters(void __user *user, unsigned int len, int compat)
 
        i = 0;
        /* Choose the copy that is on our node */
-       loc_cpu_entry = private->entries[smp_processor_id()];
+       loc_cpu_entry = private->entries[raw_smp_processor_id()];
        IP6T_ENTRY_ITERATE(loc_cpu_entry,
                          private->size,
                          add_counter_to_entry,