From: Herbert Xu Date: Thu, 20 Dec 2007 12:13:21 +0000 (-0800) Subject: [SNMP]: Fix SNMP counters with PREEMPT X-Git-Tag: v2.6.25-rc1~1162^2~985 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d647b36a69bf0a630ebf981bde3c0651e2779e5e;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed