]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rcu: Allow rcutorture to be built at low optimization levels
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 4 Feb 2013 18:36:13 +0000 (13:36 -0500)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 4 Feb 2013 20:18:20 +0000 (12:18 -0800)
commite4aa0da39b6a69f3442ebc33500c21176c5eb560
tree0acc73d7aa64e1f825c515346622f0d5eb04126a
parent40393f525fe698e2b639cf1851ef0a40e7e158a8
rcu: Allow rcutorture to be built at low optimization levels

The uses of trace_clock_local() are dead code when CONFIG_RCU_TRACE=n,
but some compilers might nevertheless generate code calling this function.
This commit therefore ensures that trace_clock_local() is invoked only
when CONFIG_RCU_TRACE=y.

Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/rcutorture.c