ftrace: prevent recursion
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 27 Nov 2008 02:21:46 +0000 (10:21 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 27 Nov 2008 09:11:53 +0000 (10:11 +0100)
commit4f5a7f40ddbae98569acbb99118a98570315579c
tree82eca15746f525acc19fd9e3f33cb08c6c8bc3e6
parentfb91ee6cf5b8be5360acec577458e29ec7e97e5e
ftrace: prevent recursion

Impact: prevent unnecessary stack recursion

if the resched flag was set before we entered, then don't reschedule.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ring_buffer.c