From: Steven Rostedt Date: Thu, 21 Apr 2011 01:42:00 +0000 (-0400) Subject: lockdep: Remove cmpxchg to update nr_chain_hlocks X-Git-Tag: v3.0-rc1~406^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0944ee63f7249802be74454cef81c97630ae1cd;p=pandora-kernel.git lockdep: Remove cmpxchg to update nr_chain_hlocks For some reason nr_chain_hlocks is updated with cmpxchg, but this is performed inside of the lockdep global "grab_lock()", which also makes simple modification of this variable atomic. Remove the cmpxchg logic for updating nr_chain_hlocks and simplify the code. Signed-off-by: Steven Rostedt Acked-by: Peter Zijlstra Cc: Frederic Weisbecker Cc: Linus Torvalds Cc: Andrew Morton Link: http://lkml.kernel.org/r/20110421014300.727863282@goodmis.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed