ARM: iop: ensure sched_clock() is notrace
Subsystems (2)
PATCH 1/1 ARM: iop: ensure sched_clock() is notrace
Include sched.h to ensure sched_clock() has the notrace annotation, and mark any functions it calls as notrace too.
Cc Dan Williams <[email protected]>
Signed-off-by Rabin Vincent <[email protected]>
--- arch/arm/plat-iop/time.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/plat-iop/time.c +2 -1
@@ -18,6 +18,7 @@#include <linux/time.h> #include <linux/init.h> #include <linux/timex.h> +#include <linux/sched.h> #include <linux/io.h> #include <linux/clocksource.h> #include <linux/clockchips.h>
@@ -36,7 +37,7 @@/* * IOP clocksource (free-running timer 1). */ -static cycle_t iop_clocksource_read (struct clocksource *unused) +static cycle_t notrace iop_clocksource_read(struct clocksource *unused) {return 0xffffffffu -read_tcr1 (); }
Signature · 1 line
1.7.2.3
PATCH 1/1 ARM: iop: ensure sched_clock() is notrace
Quoted 6 lines · Rabin Vincent
Include
sched.hto ensuresched_clock()has the notrace annotation, and mark any functions it calls as notrace too.Cc Dan Williams <[email protected]>Signed-off-by Rabin Vincent <[email protected]>
Acked-by Dan Williams <[email protected]>
This can go to Russell's tracker.