···6363 a) board_time_init - a function pointer. Invoked at the beginnig of6464 time_init(). It is optional.6565 1. (optional) set up RTC routines6666- 2. (optional) calibrate and set the mips_counter_frequency6666+ 2. (optional) calibrate and set the mips_hpt_frequency67676868 b) plat_timer_setup - a function pointer. Invoked at the end of time_init()6969 1. (optional) over-ride any decisions made in time_init()···72727373 c) (optional) board-specific RTC routines.74747575- d) (optional) mips_counter_frequency - It must be definied if the board7575+ d) (optional) mips_hpt_frequency - It must be definied if the board7676 is using CPU counter for timer interrupt or it is using fixed rate7777 gettimeoffset().7878···104104 or use an exnternal timer?105105106106 In order to use CPU counter register as the timer interrupt source, you107107- must know the counter speed (mips_counter_frequency). It is usually the107107+ must know the counter speed (mips_hpt_frequency). It is usually the108108 same as the CPU speed or an integral divisor of it.109109110110 d) decide on whether you want to use high-level or low-level timer···121121 if needed.122122123123 board_time_init() -124124- a) (optional) set up RTC routines, 125125- b) (optional) calibrate and set the mips_counter_frequency124124+ a) (optional) set up RTC routines,125125+ b) (optional) calibrate and set the mips_hpt_frequency126126 (only needed if you intended to use fixed_rate_gettimeoffset127127 or use cpu counter as timer interrupt source)128128
+1-1
arch/mips/mips-boards/generic/time.c
···187187}188188189189/*190190- * Estimate CPU frequency. Sets mips_counter_frequency as a side-effect190190+ * Estimate CPU frequency. Sets mips_hpt_frequency as a side-effect191191 */192192static unsigned int __init estimate_cpu_frequency(void)193193{
+1-1
arch/mips/mips-boards/sim/sim_time.c
···102102103103104104/*105105- * Estimate CPU frequency. Sets mips_counter_frequency as a side-effect105105+ * Estimate CPU frequency. Sets mips_hpt_frequency as a side-effect106106 */107107static unsigned int __init estimate_cpu_frequency(void)108108{