Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
484944a5
Commit
484944a5
authored
May 30, 2006
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CPUFREQ] Remove more freq_table reinitialisations.
Signed-off-by:
Dave Jones
<
davej@redhat.com
>
parent
5557976c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
drivers/cpufreq/freq_table.c
drivers/cpufreq/freq_table.c
+8
-4
No files found.
drivers/cpufreq/freq_table.c
View file @
484944a5
...
...
@@ -91,20 +91,24 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy,
unsigned
int
relation
,
unsigned
int
*
index
)
{
struct
cpufreq_frequency_table
optimal
=
{
.
index
=
~
0
,
};
struct
cpufreq_frequency_table
suboptimal
=
{
.
index
=
~
0
,
};
struct
cpufreq_frequency_table
optimal
=
{
.
index
=
~
0
,
.
frequency
=
0
,
};
struct
cpufreq_frequency_table
suboptimal
=
{
.
index
=
~
0
,
.
frequency
=
0
,
};
unsigned
int
i
;
dprintk
(
"request for target %u kHz (relation: %u) for cpu %u
\n
"
,
target_freq
,
relation
,
policy
->
cpu
);
switch
(
relation
)
{
case
CPUFREQ_RELATION_H
:
optimal
.
frequency
=
0
;
suboptimal
.
frequency
=
~
0
;
break
;
case
CPUFREQ_RELATION_L
:
optimal
.
frequency
=
~
0
;
suboptimal
.
frequency
=
0
;
break
;
}
...
...
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