Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
968e7353
Commit
968e7353
authored
Apr 15, 2004
by
Dave Jones
Committed by
Dave Jones
Apr 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Add a module parameter to force ACPI to be used.
parent
bce44e9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
+12
-1
No files found.
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
View file @
968e7353
...
...
@@ -17,6 +17,7 @@
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/slab.h>
...
...
@@ -90,6 +91,12 @@ static int fid_codes[32] = {
150
,
225
,
160
,
165
,
170
,
180
,
-
1
,
-
1
,
};
/* This parameter is used in order to force ACPI instead of legacy method for
* configuration purpose.
*/
static
int
powernow_acpi_force
;
static
struct
cpufreq_frequency_table
*
powernow_table
;
static
unsigned
int
can_scale_bus
;
...
...
@@ -554,7 +561,7 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy)
}
dprintk
(
KERN_INFO
PFX
"FSB: %3d.%03d MHz
\n
"
,
fsb
/
1000
,
fsb
%
1000
);
if
(
dmi_broken
&
BROKEN_CPUFREQ
)
{
if
(
(
dmi_broken
&
BROKEN_CPUFREQ
)
||
powernow_acpi_force
)
{
printk
(
KERN_INFO
PFX
"PSB/PST known to be broken. Trying ACPI instead
\n
"
);
result
=
powernow_acpi_init
();
}
else
{
...
...
@@ -631,6 +638,10 @@ static void __exit powernow_exit (void)
kfree
(
powernow_table
);
}
module_param
(
powernow_acpi_force
,
int
,
0444
);
MODULE_PARM_DESC
(
powernow_acpi_force
,
"Force ACPI to be used"
);
MODULE_AUTHOR
(
"Dave Jones <davej@codemonkey.org.uk>"
);
MODULE_DESCRIPTION
(
"Powernow driver for AMD K7 processors."
);
MODULE_LICENSE
(
"GPL"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment