xtensa: cleanup ccount frequency tracking
Remove unused nsec_per_ccount, and rename ccount_per_jiffy to ccount_preq. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
committed by
Chris Zankel
parent
ed9dfed62c
commit
e504c4b607
@@ -36,9 +36,8 @@
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
|
||||
extern unsigned long ccount_per_jiffy;
|
||||
extern unsigned long nsec_per_ccount;
|
||||
#define CCOUNT_PER_JIFFY ccount_per_jiffy
|
||||
extern unsigned long ccount_freq;
|
||||
#define CCOUNT_PER_JIFFY (ccount_freq / HZ)
|
||||
#else
|
||||
#define CCOUNT_PER_JIFFY (CONFIG_XTENSA_CPU_CLOCK*(1000000UL/HZ))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user