Commit 3cc2649b authored by Luming Yu's avatar Luming Yu Committed by Len Brown

ACPI: fix oops due to typo in new throttling code

Signed-off-by: default avatarLuming Yu <luming.yu@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent f695baf2
...@@ -658,18 +658,20 @@ static int acpi_processor_throttling_seq_show(struct seq_file *seq, ...@@ -658,18 +658,20 @@ static int acpi_processor_throttling_seq_show(struct seq_file *seq,
pr->throttling.state_count - 1); pr->throttling.state_count - 1);
seq_puts(seq, "states:\n"); seq_puts(seq, "states:\n");
if (acpi_processor_get_throttling == acpi_processor_get_throttling_fadt) if (pr->throttling.acpi_processor_get_throttling ==
acpi_processor_get_throttling_fadt) {
for (i = 0; i < pr->throttling.state_count; i++) for (i = 0; i < pr->throttling.state_count; i++)
seq_printf(seq, " %cT%d: %02d%%\n", seq_printf(seq, " %cT%d: %02d%%\n",
(i == pr->throttling.state ? '*' : ' '), i, (i == pr->throttling.state ? '*' : ' '), i,
(pr->throttling.states[i].performance ? pr-> (pr->throttling.states[i].performance ? pr->
throttling.states[i].performance / 10 : 0)); throttling.states[i].performance / 10 : 0));
else } else {
for (i = 0; i < pr->throttling.state_count; i++) for (i = 0; i < pr->throttling.state_count; i++)
seq_printf(seq, " %cT%d: %02d%%\n", seq_printf(seq, " %cT%d: %02d%%\n",
(i == pr->throttling.state ? '*' : ' '), i, (i == pr->throttling.state ? '*' : ' '), i,
(int)pr->throttling.states_tss[i]. (int)pr->throttling.states_tss[i].
freqpercentage); freqpercentage);
}
end: end:
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment