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
e658d442
Commit
e658d442
authored
Sep 03, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ][X86] Small fixes necessary to separate the governors from policies.
parent
4299ec58
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
13 deletions
+11
-13
arch/i386/kernel/cpu/cpufreq/acpi.c
arch/i386/kernel/cpu/cpufreq/acpi.c
+1
-1
arch/i386/kernel/cpu/cpufreq/elanfreq.c
arch/i386/kernel/cpu/cpufreq/elanfreq.c
+1
-1
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
+1
-1
arch/i386/kernel/cpu/cpufreq/longhaul.c
arch/i386/kernel/cpu/cpufreq/longhaul.c
+1
-1
arch/i386/kernel/cpu/cpufreq/longrun.c
arch/i386/kernel/cpu/cpufreq/longrun.c
+2
-1
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
+1
-1
arch/i386/kernel/cpu/cpufreq/powernow-k6.c
arch/i386/kernel/cpu/cpufreq/powernow-k6.c
+1
-1
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
+1
-1
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+1
-3
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
+1
-2
No files found.
arch/i386/kernel/cpu/cpufreq/acpi.c
View file @
e658d442
...
@@ -580,7 +580,7 @@ acpi_cpufreq_cpu_init (
...
@@ -580,7 +580,7 @@ acpi_cpufreq_cpu_init (
if
(
perf
->
states
[
i
].
transition_latency
>
policy
->
cpuinfo
.
transition_latency
)
if
(
perf
->
states
[
i
].
transition_latency
>
policy
->
cpuinfo
.
transition_latency
)
policy
->
cpuinfo
.
transition_latency
=
perf
->
states
[
i
].
transition_latency
;
policy
->
cpuinfo
.
transition_latency
=
perf
->
states
[
i
].
transition_latency
;
}
}
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cur
=
perf
->
states
[
pr
->
limit
.
state
.
px
].
core_frequency
*
1000
;
policy
->
cur
=
perf
->
states
[
pr
->
limit
.
state
.
px
].
core_frequency
*
1000
;
/* table init */
/* table init */
...
...
arch/i386/kernel/cpu/cpufreq/elanfreq.c
View file @
e658d442
...
@@ -216,7 +216,7 @@ static int elanfreq_cpu_init(struct cpufreq_policy *policy)
...
@@ -216,7 +216,7 @@ static int elanfreq_cpu_init(struct cpufreq_policy *policy)
}
}
/* cpuinfo and default policy values */
/* cpuinfo and default policy values */
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cur
=
elanfreq_get_cpu_frequency
();
policy
->
cur
=
elanfreq_get_cpu_frequency
();
...
...
arch/i386/kernel/cpu/cpufreq/gx-suspmod.c
View file @
e658d442
...
@@ -434,7 +434,7 @@ static int cpufreq_gx_cpu_init(struct cpufreq_policy *policy)
...
@@ -434,7 +434,7 @@ static int cpufreq_gx_cpu_init(struct cpufreq_policy *policy)
policy
->
min
=
maxfreq
/
POLICY_MIN_DIV
;
policy
->
min
=
maxfreq
/
POLICY_MIN_DIV
;
policy
->
max
=
maxfreq
;
policy
->
max
=
maxfreq
;
policy
->
cur
=
curfreq
;
policy
->
cur
=
curfreq
;
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
min_freq
=
maxfreq
/
max_duration
;
policy
->
cpuinfo
.
min_freq
=
maxfreq
/
max_duration
;
policy
->
cpuinfo
.
max_freq
=
maxfreq
;
policy
->
cpuinfo
.
max_freq
=
maxfreq
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
...
...
arch/i386/kernel/cpu/cpufreq/longhaul.c
View file @
e658d442
...
@@ -584,7 +584,7 @@ static int longhaul_cpu_init (struct cpufreq_policy *policy)
...
@@ -584,7 +584,7 @@ static int longhaul_cpu_init (struct cpufreq_policy *policy)
if
(
ret
!=
0
)
if
(
ret
!=
0
)
return
ret
;
return
ret
;
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cur
=
(
unsigned
int
)
(
longhaul_get_cpu_fsb
()
*
longhaul_get_cpu_mult
()
*
100
);
policy
->
cur
=
(
unsigned
int
)
(
longhaul_get_cpu_fsb
()
*
longhaul_get_cpu_mult
()
*
100
);
...
...
arch/i386/kernel/cpu/cpufreq/longrun.c
View file @
e658d442
...
@@ -120,7 +120,8 @@ static int longrun_verify_policy(struct cpufreq_policy *policy)
...
@@ -120,7 +120,8 @@ static int longrun_verify_policy(struct cpufreq_policy *policy)
policy
->
cpuinfo
.
min_freq
,
policy
->
cpuinfo
.
min_freq
,
policy
->
cpuinfo
.
max_freq
);
policy
->
cpuinfo
.
max_freq
);
if
(
policy
->
policy
==
CPUFREQ_POLICY_GOVERNOR
)
if
((
policy
->
policy
!=
CPUFREQ_POLICY_POWERSAVE
)
&&
(
policy
->
policy
!=
CPUFREQ_POLICY_PERFORMANCE
))
return
-
EINVAL
;
return
-
EINVAL
;
return
0
;
return
0
;
...
...
arch/i386/kernel/cpu/cpufreq/p4-clockmod.c
View file @
e658d442
...
@@ -211,7 +211,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy)
...
@@ -211,7 +211,7 @@ static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy)
cpufreq_frequency_table_get_attr
(
p4clockmod_table
,
policy
->
cpu
);
cpufreq_frequency_table_get_attr
(
p4clockmod_table
,
policy
->
cpu
);
/* cpuinfo and default policy values */
/* cpuinfo and default policy values */
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
transition_latency
=
1000
;
policy
->
cpuinfo
.
transition_latency
=
1000
;
policy
->
cur
=
stock_freq
;
policy
->
cur
=
stock_freq
;
...
...
arch/i386/kernel/cpu/cpufreq/powernow-k6.c
View file @
e658d442
...
@@ -157,7 +157,7 @@ static int powernow_k6_cpu_init(struct cpufreq_policy *policy)
...
@@ -157,7 +157,7 @@ static int powernow_k6_cpu_init(struct cpufreq_policy *policy)
}
}
/* cpuinfo and default policy values */
/* cpuinfo and default policy values */
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cur
=
busfreq
*
max_multiplier
;
policy
->
cur
=
busfreq
*
max_multiplier
;
...
...
arch/i386/kernel/cpu/cpufreq/powernow-k7.c
View file @
e658d442
...
@@ -372,7 +372,7 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy)
...
@@ -372,7 +372,7 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy)
printk
(
KERN_INFO
PFX
"Minimum speed %d MHz. Maximum speed %d MHz.
\n
"
,
printk
(
KERN_INFO
PFX
"Minimum speed %d MHz. Maximum speed %d MHz.
\n
"
,
minimum_speed
,
maximum_speed
);
minimum_speed
,
maximum_speed
);
policy
->
policy
=
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
policy
->
cpuinfo
.
transition_latency
=
latency
;
policy
->
cpuinfo
.
transition_latency
=
latency
;
policy
->
cur
=
maximum_speed
;
policy
->
cur
=
maximum_speed
;
...
...
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
View file @
e658d442
...
@@ -201,9 +201,7 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
...
@@ -201,9 +201,7 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
freq
=
get_cur_freq
();
freq
=
get_cur_freq
();
policy
->
policy
=
(
freq
==
centrino_model
->
max_freq
)
?
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
CPUFREQ_POLICY_PERFORMANCE
:
CPUFREQ_POLICY_POWERSAVE
;
policy
->
cpuinfo
.
transition_latency
=
10
;
/* 10uS transition latency */
policy
->
cpuinfo
.
transition_latency
=
10
;
/* 10uS transition latency */
policy
->
cur
=
freq
;
policy
->
cur
=
freq
;
...
...
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
View file @
e658d442
...
@@ -299,8 +299,7 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)
...
@@ -299,8 +299,7 @@ static int speedstep_cpu_init(struct cpufreq_policy *policy)
(
speed
/
1000
));
(
speed
/
1000
));
/* cpuinfo and default policy values */
/* cpuinfo and default policy values */
policy
->
policy
=
(
speed
==
speedstep_freqs
[
SPEEDSTEP_LOW
].
frequency
)
?
policy
->
governor
=
CPUFREQ_DEFAULT_GOVERNOR
;
CPUFREQ_POLICY_POWERSAVE
:
CPUFREQ_POLICY_PERFORMANCE
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cpuinfo
.
transition_latency
=
CPUFREQ_ETERNAL
;
policy
->
cur
=
speed
;
policy
->
cur
=
speed
;
...
...
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