[PATCH] ARM: ensure all sched_clock() implementations are notrace marked

Rabin Vincent rabin at rab.in
Thu Dec 16 10:12:23 EST 2010


On Thu, Dec 16, 2010 at 1:48 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> ftrace requires sched_clock() to be notrace.  Ensure that all
> implementations are so marked.
>
> Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>

It does seem better to have all of them explicity annotated anyway, even
if it not required in most of the cases because they include
<linux/sched.h> and the annotation in the declaration takes effect.

Note that in order for this to be fully effective, all functions called
from sched_clock() need to be notrace too.  OMAP and u300 miss this.
The following patches fix them up; perhaps you can fold them into this
one.  If not, I will rebase them later after this series is merged:

http://www.spinics.net/lists/arm-kernel/msg104616.html
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg38911.html



More information about the linux-arm-kernel mailing list