[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C08A3C0.3090106@cn.fujitsu.com>
Date: Fri, 04 Jun 2010 14:57:04 +0800
From: Lai Jiangshan <laijs@...fujitsu.com>
To: Steven Rostedt <rostedt@...dmis.org>
CC: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Frederic Weisbecker <fweisbec@...il.com>
Subject: Re: [PATCH 2/2] tracing: Remove ftrace_preempt_disable/enable
Steven Rostedt wrote:
> From: Steven Rostedt <srostedt@...hat.com>
>
Acked-by: Lai Jiangshan <laijs@...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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists