ARM: u300: ensure sched_clock() is notrace
Subsystems (2)
PATCH 1/1 ARM: u300: 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 Linus Walleij <[email protected]>
Signed-off-by Rabin Vincent <[email protected]>
--- arch/arm/mach-u300/timer.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-u300/timer.c +2 -1
@@ -11,6 +11,7 @@#include <linux/interrupt.h> #include <linux/time.h> #include <linux/timex.h> +#include <linux/sched.h> #include <linux/clockchips.h> #include <linux/clocksource.h> #include <linux/types.h>
@@ -332,7 +333,7 @@ static struct irqaction u300_timer_irq = { };/* Use general purpose timer 2 as clock source */ -static cycle_t u300_get_cycles (struct clocksource *cs) +static cycle_t notrace u300_get_cycles(struct clocksource *cs) {return (cycles_t )readl (U300_TIMER_APP_VBASE +U300_TIMER_APP_GPT2CC ); }
Signature · 1 line
1.7.2.3
PATCH 1/1 ARM: u300: ensure sched_clock() is notrace
2010/11/19 Rabin Vincent <[email protected]>:
Quoted 3 lines
Include
sched.hto ensuresched_clock()has the notrace annotation, and mark any functions it calls as notrace too.
Looking good,
Acked-by Linus Walleij <[email protected]>
Yours,
Linus Walleij