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
bcff6156
Commit
bcff6156
authored
Oct 07, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] fix up the invalid usage of pol->policy in drv_init()
also mark it with a warning in drv_verify() From Dominik.
parent
ea9f6930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+2
-1
No files found.
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
View file @
bcff6156
...
...
@@ -935,6 +935,7 @@ drv_verify(struct cpufreq_policy *pol)
return
-
ENODEV
;
}
#warning pol->policy is in undefined state here
res
=
find_match
(
&
targ
,
&
min
,
&
max
,
pol
->
policy
==
CPUFREQ_POLICY_POWERSAVE
?
SEARCH_DOWN
:
SEARCH_UP
,
0
,
0
);
...
...
@@ -954,7 +955,7 @@ drv_cpu_init(struct cpufreq_policy *pol)
return
-
ENODEV
;
}
pol
->
policy
=
CPUFREQ_
POLICY_PERFORMANCE
;
/* boot as fast as we can */
pol
->
policy
=
CPUFREQ_
DEFAULT_GOVERNOR
;
/* Take a crude guess here. */
pol
->
cpuinfo
.
transition_latency
=
((
rvo
+
8
)
*
vstable
*
VST_UNITS_20US
)
...
...
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