Re: [PATCH 2/2] tracing: Remove ftrace_preempt_disable/enable

From: Lai Jiangshan
Date: Fri Jun 04 2010 - 02:57:20 EST


Steven Rostedt wrote:
> From: Steven Rostedt <srostedt@xxxxxxxxxx>
>

Acked-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>


I think we may need to ensure need_resched() notrace:

-static inline int need_resched(void)
+static __always_inline int need_resched(void)

-static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
+static __always_inline int test_ti_thread_flag(struct thread_info *ti, int flag)

...

I believe compiler will always inline them, It just looks nicer when use __always_inline.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/