MarvellEmbeddedProcessors / linux-marvell

Marvell Linux kernel
Other
89 stars 67 forks source link

Fix problem with cpu scaling not working #19

Open FlashBurnGitHub opened 5 years ago

FlashBurnGitHub commented 5 years ago

This fixes a problem that the cpu scaling is not working.

First one needs to first unset the parent clock, before setting the same old parent clock again. This solves the problem that the wrong TBG clock source was used for the cpu.

Also one needs to multiply the current cpu frequency with the used divider so that the right cpu frequency gets calculated when applying the dividers. This was need for a 600MHz final cpu frequency to work

lanefu commented 5 years ago

@haklai @Mrvl-BenjaminHuang @josephyau

Are you about to review this PR?

kostapr commented 5 years ago

The patch was forwarded to Gregory Clement for mainline integration. We will merge it once it is accepted by kernel team. http://lists.infradead.org/pipermail/linux-arm-kernel/2019-March/638623.html http://lists.infradead.org/pipermail/linux-arm-kernel/2019-March/638504.html