]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00251849-1 cpufreq:print the max freq directly, not obscure number
authorRobin Gong <b38343@freescale.com>
Tue, 26 Feb 2013 08:04:09 +0000 (16:04 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:54 +0000 (08:35 +0200)
You can see "arm_max_freq=1GHz" log directly from console during boot.
not "arm_max_freq=1" before.

Signed-off-by: Robin Gong <b38343@freescale.com>
arch/arm/mach-mx6/cpu_op-mx6.c

index 5124c5ee5985aa9d1c37d4aee42495fedd217bb1..541861832543acf2476a3ecd9789e5160da40f91 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2012 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2013 Freescale Semiconductor, Inc. All Rights Reserved.
  */
 
 /*
@@ -353,7 +353,8 @@ void mx6_cpu_op_init(void)
                arm_max_freq = (reg > arm_max_freq) ? arm_max_freq : reg;
        } else
                arm_max_freq = CPU_AT_1GHz;/*mx6dl/sl max freq is 1Ghz*/
-       printk(KERN_INFO "arm_max_freq=%x\n", arm_max_freq);
+       printk(KERN_INFO "arm_max_freq=%s\n", (arm_max_freq == CPU_AT_1_2GHz) ?
+               "1.2GHz" : ((arm_max_freq == CPU_AT_1GHz) ? "1GHz" : "800MHz"));
        get_cpu_op = mx6_get_cpu_op;
        set_num_cpu_op = mx6_set_num_cpu_op;