Skip to contentSkip to conversation

ARM: u300: ensure sched_clock() is notrace

PATCH New Rabin Vincent 2 participants 2 messages Nov 19, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/arm/mach-u300/timer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-u300/timer.c +2 -1
index 3fc4472..776bdf3 100644
@@ -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