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
a24c67b2
Commit
a24c67b2
authored
May 07, 2004
by
Dave Jones
Committed by
Dave Jones
May 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] use speedstep_centrino's internal get function as ->get()
parent
fdbfdd0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+6
-3
No files found.
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
View file @
a24c67b2
...
...
@@ -225,9 +225,11 @@ static unsigned extract_clock(unsigned msr)
}
/* Return the current CPU frequency in kHz */
static
unsigned
get_cur_freq
(
void
)
static
unsigned
int
get_cur_freq
(
unsigned
int
cpu
)
{
unsigned
l
,
h
;
if
(
cpu
)
return
0
;
rdmsr
(
MSR_IA32_PERF_STATUS
,
l
,
h
);
return
extract_clock
(
l
);
...
...
@@ -322,7 +324,7 @@ static int centrino_cpu_init_acpi(struct cpufreq_policy *policy)
goto
err_kfree
;
}
cur_freq
=
get_cur_freq
();
cur_freq
=
get_cur_freq
(
0
);
for
(
i
=
0
;
i
<
p
.
state_count
;
i
++
)
{
centrino_model
->
op_points
[
i
].
index
=
p
.
states
[
i
].
control
;
...
...
@@ -391,7 +393,7 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
}
}
freq
=
get_cur_freq
();
freq
=
get_cur_freq
(
0
);
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
transition_latency
=
10
;
/* 10uS transition latency */
...
...
@@ -516,6 +518,7 @@ static struct cpufreq_driver centrino_driver = {
.
exit
=
centrino_cpu_exit
,
.
verify
=
centrino_verify
,
.
target
=
centrino_target
,
.
get
=
get_cur_freq
,
.
attr
=
centrino_attr
,
.
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