public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] kernel:fork: fix dependency of hardirqs_enabled and softirqs_enabled
@ 2010-05-04 16:01 tom.leiming
  2010-05-04 17:04 ` [tip:core/locking] lockdep, fork: Fix " tip-bot for Ming Lei
  0 siblings, 1 reply; 3+ messages in thread
From: tom.leiming @ 2010-05-04 16:01 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel, a.p.zijlstra, Ming Lei

From: Ming Lei <tom.leiming@gmail.com>

The defination of hardirqs_enabled and softirqs_enabled in task_struct
depends on CONFIG_TRACE_IRQFLAGS instead of CONFIG_PROVE_LOCKING.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 kernel/fork.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/fork.c b/kernel/fork.c
index 44b0791..038a8fd 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1004,7 +1004,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 
 	rt_mutex_init_task(p);
 
-#ifdef CONFIG_PROVE_LOCKING
+#ifdef CONFIG_TRACE_IRQFLAGS
 	DEBUG_LOCKS_WARN_ON(!p->hardirqs_enabled);
 	DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled);
 #endif
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-04 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04 16:01 [PATCH 1/2] kernel:fork: fix dependency of hardirqs_enabled and softirqs_enabled tom.leiming
2010-05-04 17:04 ` [tip:core/locking] lockdep, fork: Fix " tip-bot for Ming Lei
2010-05-04 17:08   ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox