From: Frederic Weisbecker Date: Thu, 15 Apr 2010 21:10:42 +0000 (+0200) Subject: lockdep: Fix redundant_hardirqs_on incremented with irqs enabled X-Git-Tag: v2.6.35-rc1~525^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8795d7717c467bea7b0a0649d44a258e09f34db2;p=pandora-kernel.git lockdep: Fix redundant_hardirqs_on incremented with irqs enabled When a path restore the flags while irqs are already enabled, we update the per cpu var redundant_hardirqs_on in a racy fashion and debug_atomic_inc() warns about this situation. In this particular case, loosing a few hits in a stat is not a big deal, so increment it without protection. v2: Don't bother with disabling irq, we can miss one count in rare situations Reported-by: Stephen Rothwell Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: David Miller Cc: Benjamin Herrenschmidt --- Reading git-diff-tree failed