Herbert Xu d647b36a69 [SNMP]: Fix SNMP counters with PREEMPT
The SNMP macros use raw_smp_processor_id() in process context
which is illegal because the process may be preempted and then
migrated to another CPU.

This patch makes it use get_cpu/put_cpu to disable preemption.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 14:59:16 -08:00
..
2008-01-28 14:57:23 -08:00
2007-12-20 13:56:32 -08:00
2007-10-10 16:53:11 -07:00
2006-12-02 21:22:55 -08:00
2007-12-20 13:56:32 -08:00
2007-10-10 16:53:56 -07:00
2005-08-29 15:32:25 -07:00
2008-01-28 14:57:23 -08:00
2007-11-02 08:47:06 +01:00
2007-07-10 22:15:41 -07:00
2005-04-16 15:20:36 -07:00
2007-10-10 16:51:28 -07:00
2008-01-28 14:53:47 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-22 07:57:21 -03:00
2006-03-20 22:59:36 -08:00
2005-08-29 16:01:32 -07:00
2008-01-28 14:55:51 -08:00
2005-08-29 15:32:25 -07:00
2008-01-28 14:54:32 -08:00
2007-10-07 23:44:17 -07:00
2008-01-28 14:55:56 -08:00
2008-01-28 14:59:16 -08:00
2008-01-28 14:57:23 -08:00