xtensa: fix !CONFIG_XTENSA_CALIBRATE_CCOUNT build failure
Commits925f5532
(xtensa: ccount based clockevent implementation) ande3f43291
(xtensa: ccount based sched_clock) introduced users of ccount_freq. This variable doesn't exist when CONFIG_XTENSA_CALIBRATE_CCOUNT is disabled. Add ccount_freq definition in this case. Reported-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:

committed by
Chris Zankel

parent
123f15e669
commit
fedc21dce8
@@ -35,13 +35,8 @@
|
||||
# error "Bad timer number for Linux configurations!"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
|
||||
extern unsigned long ccount_freq;
|
||||
#define CCOUNT_PER_JIFFY (ccount_freq / HZ)
|
||||
#else
|
||||
#define CCOUNT_PER_JIFFY (CONFIG_XTENSA_CPU_CLOCK*(1000000UL/HZ))
|
||||
#endif
|
||||
|
||||
|
||||
typedef unsigned long long cycles_t;
|
||||
|
||||
|
Reference in New Issue
Block a user