diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-05-31 15:12:58 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-11 17:57:36 -0500 |
commit | b39ae3793ab590efbdb8aab63a598071782d32b8 (patch) | |
tree | 98f3f3577e8aae8249223375bc002d6e7f37618d | |
parent | 52d5524f64b4f118672f5d80235221fe1c622c18 (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.h | 2 |
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 | ||
17 | typedef unsigned long cycles_t; | 17 | typedef unsigned long cycles_t; |
18 | 18 | ||
19 | #ifndef get_cycles | ||
19 | static inline cycles_t get_cycles (void) | 20 | static inline cycles_t get_cycles (void) |
20 | { | 21 | { |
21 | return 0; | 22 | return 0; |
22 | } | 23 | } |
24 | #endif | ||
23 | 25 | ||
24 | #endif | 26 | #endif |