]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: thermal: clean up throttle_table show
authorDiwakar Tundlam <dtundlam@nvidia.com>
Mon, 2 Jun 2014 22:10:07 +0000 (15:10 -0700)
committerMandar Padmawar <mpadmawar@nvidia.com>
Mon, 9 Jun 2014 11:06:09 +0000 (04:06 -0700)
Change-Id: I87b198a0a28aab722a5ac43b5bfcac860133cfc2
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/417935
Reviewed-by: Automatic_Commit_Validation_User
arch/arm/mach-tegra/tegra3_throttle.c

index e05f1b4526782313e0be10cb22a153c419581a45..0ec071c8f7cc70835fe630dd17658c53717ccd09 100644 (file)
@@ -241,14 +241,17 @@ static int table_show(struct seq_file *s, void *data)
 
        for (i = 0; i < bthrot->throt_tab_size; i++) {
                /* CPU FREQ */
-               seq_printf(s, "[%d] = %7lu",
+               seq_printf(s, "%s[%d] = %7lu", i < 10 ? " " : "",
                        i, bthrot->throt_tab[i].cap_freqs[0]);
 
                /* OTHER DVFS MODULE FREQS */
                for (j = 1; j <= ARRAY_SIZE(cap_freqs_table); j++)
-                       seq_printf(s, " %7lu",
-                               bthrot->throt_tab[i].cap_freqs[j]);
-               seq_printf(s, "\n");
+                       if (bthrot->throt_tab[i].cap_freqs[j] == NO_CAP)
+                               seq_puts(s, "  NO CAP");
+                       else
+                               seq_printf(s, " %7lu",
+                                       bthrot->throt_tab[i].cap_freqs[j]);
+               seq_puts(s, "\n");
        }
 
        return 0;