From: Frederic Weisbecker Date: Tue, 7 Jun 2011 23:13:27 +0000 (+0200) Subject: sched: Isolate preempt counting in its own config option X-Git-Tag: v3.1-rc1~298^2~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdd4e85dc36cdbcfc1608a5b2a17c80a9db8986a;p=pandora-kernel.git sched: Isolate preempt counting in its own config option Create a new CONFIG_PREEMPT_COUNT that handles the inc/dec of preempt count offset independently. So that the offset can be updated by preempt_disable() and preempt_enable() even without the need for CONFIG_PREEMPT beeing set. This prepares to make CONFIG_DEBUG_SPINLOCK_SLEEP working with !CONFIG_PREEMPT where it currently doesn't detect code that sleeps inside explicit preemption disabled sections. Signed-off-by: Frederic Weisbecker Acked-by: Paul E. McKenney Cc: Ingo Molnar Cc: Peter Zijlstra --- Reading git-diff-tree failed