From: Eric Dumazet Date: Thu, 9 Sep 2010 04:31:35 +0000 (-0700) Subject: net: inet_add_protocol() can use cmpxchg() X-Git-Tag: v2.6.37-rc1~147^2~501 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0386005ff2a729998735e10769d99e1acbc2dd1;p=pandora-kernel.git net: inet_add_protocol() can use cmpxchg() Use cmpxchg() to get rid of spinlocks in inet_add_protocol() and friends. inet_protos[] & inet6_protos[] are moved to read_mostly section Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed