Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / tools / power / cpupower / utils / cpufreq-info.c
index 56e54eabc65cd69abe0d6258a3c36b1bbaf12b24..c3f39d5128ee4e8445cb0921f1485224fc252914 100644 (file)
@@ -202,6 +202,8 @@ static int get_boost_mode(unsigned int cpu)
                printf(_("    Boost States: %d\n"), b_states);
                printf(_("    Total States: %d\n"), pstate_no);
                for (i = 0; i < pstate_no; i++) {
+                       if (!pstates[i])
+                               continue;
                        if (i < b_states)
                                printf(_("    Pstate-Pb%d: %luMHz (boost state)"
                                         "\n"), i, pstates[i]);