aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-05-31 15:12:58 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-11 17:57:36 -0500
commitb39ae3793ab590efbdb8aab63a598071782d32b8 (patch)
tree98f3f3577e8aae8249223375bc002d6e7f37618d
parent52d5524f64b4f118672f5d80235221fe1c622c18 (diff)
ARM: allow mach/timex.h to define get_cycles()
Some platforms have access to a cycle coutner (CCNT) register in the CP15 coprocessor. This trivial change will allow such platforms to provide specialized implementations.
-rw-r--r--arch/arm/include/asm/timex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/timex.h b/arch/arm/include/asm/timex.h
index 3be8de3adaba..8a102a383a36 100644
--- a/arch/arm/include/asm/timex.h
+++ b/arch/arm/include/asm/timex.h
@@ -16,9 +16,11 @@
16 16
17typedef unsigned long cycles_t; 17typedef unsigned long cycles_t;
18 18
19#ifndef get_cycles
19static inline cycles_t get_cycles (void) 20static inline cycles_t get_cycles (void)
20{ 21{
21 return 0; 22 return 0;
22} 23}
24#endif
23 25
24#endif 26#endif