src: Make use of 'CEIL_DIV(a, b)' macro across tree

Hardware / Coreboot - Edward O'Callaghan [alterapraxis.com] - 11 July 2014 01:39 UTC

The objective here is to tighten coreboot up a bit by not repeating common helpers. This makes the code base more consistent and unified/tight.

Change-Id: Ia163eae68b4a84a00ed118125e70308fab1cea0c

7116ac8 src: Make use of 'CEIL_DIV(a, b)' macro across tree
src/cpu/allwinner/a10/clock.c | 9 ++-------
src/cpu/samsung/exynos5250/cpu.c | 2 +-
src/cpu/samsung/exynos5420/clock.c | 7 +------
src/cpu/samsung/exynos5420/cpu.c | 4 ++--
src/cpu/x86/tsc/delay_tsc.c | 2 +-
src/northbridge/amd/amdk8/raminit.c | 12 ++++++------
src/northbridge/amd/amdk8/raminit_f.c | 6 +++---
src/northbridge/intel/gm45/raminit.c | 2 +-
src/northbridge/intel/i3100/raminit_ep80579.c | 10 +++++-----
src/northbridge/intel/nehalem/raminit.c | 4 ++--
src/northbridge/via/vx800/timing_setting.c | 19 ++++++++-----------
src/northbridge/via/vx900/raminit_ddr3.c | 22 +++++++++++-----------
12 files changed, 43 insertions(+), 56 deletions(-)

Upstream: review.coreboot.org


  • Share