Home
last modified time | relevance | path

Searched refs:gclk_round (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/clocksource/
Dtimer-microchip-pit64b.c287 long gclk_round = 0; in mchp_pit64b_init_mode() local
297 gclk_round = clk_round_rate(timer->gclk, max_rate); in mchp_pit64b_init_mode()
298 if (gclk_round < 0) in mchp_pit64b_init_mode()
301 if (pclk_rate / gclk_round < 3) in mchp_pit64b_init_mode()
304 mchp_pit64b_pres_compute(&pres, gclk_round, max_rate); in mchp_pit64b_init_mode()
305 best_diff = abs(gclk_round / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
310 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()
325 clk_set_rate(timer->gclk, gclk_round); in mchp_pit64b_init_mode()
334 gclk_round / (best_pres + 1) : pclk_rate / (best_pres + 1)); in mchp_pit64b_init_mode()