Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
b0ceed06
Commit
b0ceed06
authored
9 years ago
by
Rafael J. Wysocki
Browse files
Options
Downloads
Plain Diff
Merge back earlier cpufreq fixes for v4.4.
parents
1ec21837
785ee278
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/cpufreq/cpufreq.c
+2
-5
2 additions, 5 deletions
drivers/cpufreq/cpufreq.c
drivers/cpufreq/intel_pstate.c
+3
-1
3 additions, 1 deletion
drivers/cpufreq/intel_pstate.c
with
5 additions
and
6 deletions
drivers/cpufreq/cpufreq.c
+
2
−
5
View file @
b0ceed06
...
...
@@ -1401,13 +1401,10 @@ static void cpufreq_remove_dev(struct device *dev, struct subsys_interface *sif)
}
cpumask_clear_cpu
(
cpu
,
policy
->
real_cpus
);
remove_cpu_dev_symlink
(
policy
,
cpu
);
if
(
cpumask_empty
(
policy
->
real_cpus
))
{
if
(
cpumask_empty
(
policy
->
real_cpus
))
cpufreq_policy_free
(
policy
,
true
);
return
;
}
remove_cpu_dev_symlink
(
policy
,
cpu
);
}
static
void
handle_update
(
struct
work_struct
*
work
)
...
...
This diff is collapsed.
Click to expand it.
drivers/cpufreq/intel_pstate.c
+
3
−
1
View file @
b0ceed06
...
...
@@ -1108,7 +1108,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
limits
=
&
powersave_limits
;
limits
->
min_policy_pct
=
(
policy
->
min
*
100
)
/
policy
->
cpuinfo
.
max_freq
;
limits
->
min_policy_pct
=
clamp_t
(
int
,
limits
->
min_policy_pct
,
0
,
100
);
limits
->
max_policy_pct
=
(
policy
->
max
*
100
)
/
policy
->
cpuinfo
.
max_freq
;
limits
->
max_policy_pct
=
DIV_ROUND_UP
(
policy
->
max
*
100
,
policy
->
cpuinfo
.
max_freq
);
limits
->
max_policy_pct
=
clamp_t
(
int
,
limits
->
max_policy_pct
,
0
,
100
);
/* Normalize user input to [min_policy_pct, max_policy_pct] */
...
...
@@ -1120,6 +1121,7 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
limits
->
max_sysfs_pct
);
limits
->
max_perf_pct
=
max
(
limits
->
min_policy_pct
,
limits
->
max_perf_pct
);
limits
->
max_perf
=
round_up
(
limits
->
max_perf
,
8
);
/* Make sure min_perf_pct <= max_perf_pct */
limits
->
min_perf_pct
=
min
(
limits
->
max_perf_pct
,
limits
->
min_perf_pct
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment