commit | d647b36a69bf0a630ebf981bde3c0651e2779e5e | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Thu Dec 20 04:13:21 2007 -0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 28 14:59:16 2008 -0800 |
tree | 6c8c7ec7feefbc9c966863bc73d576017f833563 | |
parent | 2caf62f6cae46e36b1c4a1b0f2d9ef82af89cad2 [diff] |
[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>