Messages in this thread | | | Date | Fri, 04 Jun 2010 14:57:04 +0800 | From | Lai Jiangshan <> | Subject | Re: [PATCH 2/2] tracing: Remove ftrace_preempt_disable/enable |
| |
Steven Rostedt wrote: > From: Steven Rostedt <srostedt@redhat.com> >
Acked-by: Lai Jiangshan <laijs@cn.fujitsu.com>
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.
| |