diff mbox

[U-Boot,38/55] exynos: Tidy up CPU frequency display

Message ID 1435882592-487-39-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass July 3, 2015, 12:16 a.m. UTC
Line up the display with the line below, e.g.:

	CPU:   Exynos5250 @ 1.7 GHz
	Model: Google Spring
	DRAM:  2 GiB
	MMC:   EXYNOS DWMMC: 0

Also show the speed as GHz where appropriate.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/arm/cpu/armv7/s5p-common/cpu_info.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Comments

Simon Glass July 27, 2015, 11:31 p.m. UTC | #1
On 2 July 2015 at 18:16, Simon Glass <sjg@chromium.org> wrote:
> Line up the display with the line below, e.g.:
>
>         CPU:   Exynos5250 @ 1.7 GHz
>         Model: Google Spring
>         DRAM:  2 GiB
>         MMC:   EXYNOS DWMMC: 0
>
> Also show the speed as GHz where appropriate.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  arch/arm/cpu/armv7/s5p-common/cpu_info.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/arch/arm/cpu/armv7/s5p-common/cpu_info.c b/arch/arm/cpu/armv7/s5p-common/cpu_info.c
index a8d91e7..154d674 100644
--- a/arch/arm/cpu/armv7/s5p-common/cpu_info.c
+++ b/arch/arm/cpu/armv7/s5p-common/cpu_info.c
@@ -30,11 +30,8 @@  u32 get_device_type(void)
 #ifdef CONFIG_DISPLAY_CPUINFO
 int print_cpuinfo(void)
 {
-	char buf[32];
-
-	printf("CPU:\t%s%X@%sMHz\n",
-			s5p_get_cpu_name(), s5p_cpu_id,
-			strmhz(buf, get_arm_clk()));
+	printf("CPU:   %s%X @ ", s5p_get_cpu_name(), s5p_cpu_id);
+	print_freq(get_arm_clk(), "\n");
 
 	return 0;
 }