summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/vp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/vp.c')
-rw-r--r--arch/arm/mach-omap2/vp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/vp.c b/arch/arm/mach-omap2/vp.c
index 0df88820978d..f95c1bad9dc6 100644
--- a/arch/arm/mach-omap2/vp.c
+++ b/arch/arm/mach-omap2/vp.c
@@ -61,8 +61,8 @@ void __init omap_vp_init(struct voltagedomain *voltdm)
vddmin = voltdm->pmic->vp_vddmin;
vddmax = voltdm->pmic->vp_vddmax;
- waittime = ((voltdm->pmic->step_size / voltdm->pmic->slew_rate) *
- sys_clk_rate) / 1000;
+ waittime = DIV_ROUND_UP(voltdm->pmic->step_size * sys_clk_rate,
+ 1000 * voltdm->pmic->slew_rate);
vstepmin = voltdm->pmic->vp_vstepmin;
vstepmax = voltdm->pmic->vp_vstepmax;
lhm/libreoffice-7-5+backports main, development code repositoryroot
summaryrefslogtreecommitdiff
BranchCommit messageAuthorAge
aoo/aw080Resync to trunk, windows non-pro buildArmin Le Grand11 years
aoo/trunkCleaned up whitespace, reordered Increase/Decrease Indent in sidebarMatthias Seidel6 years
distro/allotropia/zeta-24-2Emscripten: Move execute_browser to the browser main threadStephan Bergmann4 months
distro/allotropia/zeta-7-3update creditsChristian Lohmaier3 years
distro/allotropia/zeta-7-4expat: upgrade to release 2.6.3Michael Stahl12 months
distro/capgemini/cg-4.1bump version to 4.1.4.2.0+Christian Lohmaier