Commit 39657dde authored by Dave Jones's avatar Dave Jones

[CPUFREQ] convert gx-suspmod MODULE_PARM to module_param

Convert gx-suspmod's MODULE_PARM to module_param.
Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 674a4f2e
...@@ -124,7 +124,7 @@ static int stock_freq; ...@@ -124,7 +124,7 @@ static int stock_freq;
/* PCI bus clock - defaults to 30.000 if cpu_khz is not available */ /* PCI bus clock - defaults to 30.000 if cpu_khz is not available */
static int pci_busclk = 0; static int pci_busclk = 0;
MODULE_PARM(pci_busclk, "i"); module_param (pci_busclk, int, 0444);
/* maximum duration for which the cpu may be suspended /* maximum duration for which the cpu may be suspended
* (32us * MAX_DURATION). If no parameter is given, this defaults * (32us * MAX_DURATION). If no parameter is given, this defaults
...@@ -133,7 +133,7 @@ MODULE_PARM(pci_busclk, "i"); ...@@ -133,7 +133,7 @@ MODULE_PARM(pci_busclk, "i");
* is suspended -- processing power is just 0.39% of what it used to be, * is suspended -- processing power is just 0.39% of what it used to be,
* though. 781.25 kHz(!) for a 200 MHz processor -- wow. */ * though. 781.25 kHz(!) for a 200 MHz processor -- wow. */
static int max_duration = 255; static int max_duration = 255;
MODULE_PARM(max_duration, "i"); module_param (max_duration, int, 0444);
/* For the default policy, we want at least some processing power /* For the default policy, we want at least some processing power
* - let's say 5%. (min = maxfreq / POLICY_MIN_DIV) * - let's say 5%. (min = maxfreq / POLICY_MIN_DIV)
......
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