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
nexedi
linux
Commits
b861df79
Commit
b861df79
authored
Mar 19, 2004
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Export an array of available frequency settings of the centrino driver.
parent
caf8b28d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+16
-1
No files found.
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
View file @
b861df79
...
@@ -363,6 +363,7 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
...
@@ -363,6 +363,7 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
{
{
unsigned
freq
;
unsigned
freq
;
unsigned
l
,
h
;
unsigned
l
,
h
;
int
ret
;
if
(
policy
->
cpu
!=
0
)
if
(
policy
->
cpu
!=
0
)
return
-
ENODEV
;
return
-
ENODEV
;
...
@@ -398,7 +399,13 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
...
@@ -398,7 +399,13 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
dprintk
(
KERN_INFO
PFX
"centrino_cpu_init: policy=%d cur=%dkHz
\n
"
,
dprintk
(
KERN_INFO
PFX
"centrino_cpu_init: policy=%d cur=%dkHz
\n
"
,
policy
->
policy
,
policy
->
cur
);
policy
->
policy
,
policy
->
cur
);
return
cpufreq_frequency_table_cpuinfo
(
policy
,
centrino_model
->
op_points
);
ret
=
cpufreq_frequency_table_cpuinfo
(
policy
,
centrino_model
->
op_points
);
if
(
ret
)
return
(
ret
);
cpufreq_frequency_table_get_attr
(
centrino_model
->
op_points
,
policy
->
cpu
);
return
0
;
}
}
static
int
centrino_cpu_exit
(
struct
cpufreq_policy
*
policy
)
static
int
centrino_cpu_exit
(
struct
cpufreq_policy
*
policy
)
...
@@ -406,6 +413,8 @@ static int centrino_cpu_exit(struct cpufreq_policy *policy)
...
@@ -406,6 +413,8 @@ static int centrino_cpu_exit(struct cpufreq_policy *policy)
if
(
!
centrino_model
)
if
(
!
centrino_model
)
return
-
ENODEV
;
return
-
ENODEV
;
cpufreq_frequency_table_put_attr
(
policy
->
cpu
);
#ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI
#ifdef CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI
if
(
!
centrino_model
->
model_name
)
{
if
(
!
centrino_model
->
model_name
)
{
acpi_processor_unregister_performance
(
&
p
,
0
);
acpi_processor_unregister_performance
(
&
p
,
0
);
...
@@ -492,6 +501,11 @@ static int centrino_target (struct cpufreq_policy *policy,
...
@@ -492,6 +501,11 @@ static int centrino_target (struct cpufreq_policy *policy,
return
0
;
return
0
;
}
}
static
struct
freq_attr
*
centrino_attr
[]
=
{
&
cpufreq_freq_attr_scaling_available_freqs
,
NULL
,
};
static
struct
cpufreq_driver
centrino_driver
=
{
static
struct
cpufreq_driver
centrino_driver
=
{
.
name
=
"centrino"
,
/* should be speedstep-centrino,
.
name
=
"centrino"
,
/* should be speedstep-centrino,
but there's a 16 char limit */
but there's a 16 char limit */
...
@@ -499,6 +513,7 @@ static struct cpufreq_driver centrino_driver = {
...
@@ -499,6 +513,7 @@ static struct cpufreq_driver centrino_driver = {
.
exit
=
centrino_cpu_exit
,
.
exit
=
centrino_cpu_exit
,
.
verify
=
centrino_verify
,
.
verify
=
centrino_verify
,
.
target
=
centrino_target
,
.
target
=
centrino_target
,
.
attr
=
centrino_attr
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
};
};
...
...
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