rcu: Simplify creating of lockdep class for root rcu_node
authorPeter Zijlstra <peterz@infradead.org>
Mon, 26 Oct 2009 17:24:31 +0000 (10:24 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 26 Oct 2009 20:07:16 +0000 (21:07 +0100)
commit88b91c7ca49bc8600cf1106eb891d08c1965b9ce
tree0b45d744c0016e11d70d56f864ad95f321b3ddea
parent4ce5b90340879ce93d169b7b523c2cbbe7c45843
rcu: Simplify creating of lockdep class for root rcu_node

Use lockdep_set_class() to simplify the code and to avoid any
additional overhead in the !LOCKDEP case.  Also move the
definition of rcu_root_class into kernel/rcutree.c, as suggested
by Lai Jiangshan.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: mathieu.desnoyers@polymtl.ca
Cc: josh@joshtriplett.org
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: rostedt@goodmis.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
LKML-Reference: <1256577871443-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/rcutree.c