Commit 3c959e25 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] gx-suspmod: fix gx_suspmod_get

Fix to return a proper cpu speed. it is caused by mistaking the meaning
of on and off.
Signed-Off-by: default avatarHiroshi Miura <miura@da-cha.org>
Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent d16b8209
......@@ -209,7 +209,7 @@ static unsigned int gx_get_cpuspeed(unsigned int cpu)
if ((gx_params->pci_suscfg & SUSMOD) == 0)
return stock_freq;
return (stock_freq * gx_params->on_duration)
return (stock_freq * gx_params->off_duration)
/ (gx_params->on_duration + gx_params->off_duration);
}
......
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