diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-12-20 13:13:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 23:59:16 +0100 |
commit | d647b36a69bf0a630ebf981bde3c0651e2779e5e (patch) | |
tree | 6c8c7ec7feefbc9c966863bc73d576017f833563 /net/mac80211/util.c | |
parent | [NIU]: Use print_mac (diff) | |
download | linux-d647b36a69bf0a630ebf981bde3c0651e2779e5e.tar.xz linux-d647b36a69bf0a630ebf981bde3c0651e2779e5e.zip |
[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>
Diffstat (limited to 'net/mac80211/util.c')
0 files changed, 0 insertions, 0 deletions