Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/vf-pit: Encapsulate the initialization of the cycles_per_jiffy

Move the cycles_per_jiffy initialization to the same place where the
other pit timer fields are initialized.

No functional changes intended.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20250804152344.1109310-7-daniel.lezcano@linaro.org

+1 -1
+1 -1
drivers/clocksource/timer-vf-pit.c
··· 155 155 * the channels 0 and 1 unused for anyone else who needs them 156 156 */ 157 157 pit->clkevt_base = base + PIT_CH(3); 158 + pit->cycle_per_jiffy = rate / (HZ); 158 159 159 160 writel(0, pit->clkevt_base + PITTCTRL); 160 161 ··· 213 212 return ret; 214 213 215 214 clk_rate = clk_get_rate(pit_clk); 216 - pit_timer.cycle_per_jiffy = clk_rate / (HZ); 217 215 218 216 /* enable the pit module */ 219 217 writel(~PITMCR_MDIS, timer_base + PITMCR);