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
1740f21a
Commit
1740f21a
authored
Jul 16, 2020
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-cpufreq'
* pm-cpufreq: cpufreq: intel_pstate: Fix active mode setting from command line
parents
a6c99daa
39a188b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
drivers/cpufreq/intel_pstate.c
drivers/cpufreq/intel_pstate.c
+6
-2
No files found.
drivers/cpufreq/intel_pstate.c
View file @
1740f21a
...
...
@@ -2464,7 +2464,7 @@ static struct cpufreq_driver intel_cpufreq = {
.
name
=
"intel_cpufreq"
,
};
static
struct
cpufreq_driver
*
default_driver
=
&
intel_pstate
;
static
struct
cpufreq_driver
*
default_driver
;
static
void
intel_pstate_driver_cleanup
(
void
)
{
...
...
@@ -2758,6 +2758,7 @@ static int __init intel_pstate_init(void)
hwp_active
++
;
hwp_mode_bdw
=
id
->
driver_data
;
intel_pstate
.
attr
=
hwp_cpufreq_attrs
;
default_driver
=
&
intel_pstate
;
goto
hwp_cpu_matched
;
}
}
else
{
...
...
@@ -2775,7 +2776,8 @@ static int __init intel_pstate_init(void)
return
-
ENODEV
;
}
/* Without HWP start in the passive mode. */
default_driver
=
&
intel_cpufreq
;
if
(
!
default_driver
)
default_driver
=
&
intel_cpufreq
;
hwp_cpu_matched:
/*
...
...
@@ -2820,6 +2822,8 @@ static int __init intel_pstate_setup(char *str)
if
(
!
strcmp
(
str
,
"disable"
))
{
no_load
=
1
;
}
else
if
(
!
strcmp
(
str
,
"active"
))
{
default_driver
=
&
intel_pstate
;
}
else
if
(
!
strcmp
(
str
,
"passive"
))
{
default_driver
=
&
intel_cpufreq
;
no_hwp
=
1
;
...
...
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