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
e50caa95
Commit
e50caa95
authored
May 16, 2013
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-cpufreq'
* pm-cpufreq: cpufreq: Preserve sysfs files across suspend/resume
parents
75e1d828
a66b2e50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq.c
+1
-3
drivers/cpufreq/cpufreq_stats.c
drivers/cpufreq/cpufreq_stats.c
+4
-3
No files found.
drivers/cpufreq/cpufreq.c
View file @
e50caa95
...
...
@@ -1832,15 +1832,13 @@ static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb,
if
(
dev
)
{
switch
(
action
)
{
case
CPU_ONLINE
:
case
CPU_ONLINE_FROZEN
:
cpufreq_add_dev
(
dev
,
NULL
);
break
;
case
CPU_DOWN_PREPARE
:
case
CPU_
DOWN_PREPARE
_FROZEN
:
case
CPU_
UP_CANCELED
_FROZEN
:
__cpufreq_remove_dev
(
dev
,
NULL
);
break
;
case
CPU_DOWN_FAILED
:
case
CPU_DOWN_FAILED_FROZEN
:
cpufreq_add_dev
(
dev
,
NULL
);
break
;
}
...
...
drivers/cpufreq/cpufreq_stats.c
View file @
e50caa95
...
...
@@ -349,15 +349,16 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb,
switch
(
action
)
{
case
CPU_ONLINE
:
case
CPU_ONLINE_FROZEN
:
cpufreq_update_policy
(
cpu
);
break
;
case
CPU_DOWN_PREPARE
:
case
CPU_DOWN_PREPARE_FROZEN
:
cpufreq_stats_free_sysfs
(
cpu
);
break
;
case
CPU_DEAD
:
case
CPU_DEAD_FROZEN
:
cpufreq_stats_free_table
(
cpu
);
break
;
case
CPU_UP_CANCELED_FROZEN
:
cpufreq_stats_free_sysfs
(
cpu
);
cpufreq_stats_free_table
(
cpu
);
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