Skip to content

Commit

Permalink
Use armv7a cycle counter unconditionally if HAVE_ARMV7A_CNTVCT
Browse files Browse the repository at this point in the history
It looks like __ARM_ARCH_7A__ is not always defined.  If the
user says HAVE_ARMV7A_CNTVCT, trust the user.
  • Loading branch information
matteo-frigo committed Sep 29, 2017
1 parent 2dd7738 commit 6ed4297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ INLINE_ELAPSED(inline)
#endif
#endif /* HAVE_MIPS_ZBUS_TIMER */

#if defined(__ARM_ARCH_7A__) && defined(HAVE_ARMV7A_CNTVCT)
#if defined(HAVE_ARMV7A_CNTVCT)
typedef uint64_t ticks;
static inline ticks getticks(void)
{
Expand Down

0 comments on commit 6ed4297

Please sign in to comment.