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
Kirill Smelkov
linux
Commits
0bbc0a0a
Commit
0bbc0a0a
authored
Sep 04, 2017
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/core' into regulator-linus
parents
569dbb88
c9ccaa0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
drivers/regulator/core.c
drivers/regulator/core.c
+10
-2
No files found.
drivers/regulator/core.c
View file @
0bbc0a0a
...
...
@@ -2396,6 +2396,14 @@ static void regulator_disable_work(struct work_struct *work)
count
=
rdev
->
deferred_disables
;
rdev
->
deferred_disables
=
0
;
/*
* Workqueue functions queue the new work instance while the previous
* work instance is being processed. Cancel the queued work instance
* as the work instance under processing does the job of the queued
* work instance.
*/
cancel_delayed_work
(
&
rdev
->
disable_work
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
ret
=
_regulator_disable
(
rdev
);
if
(
ret
!=
0
)
...
...
@@ -2439,10 +2447,10 @@ int regulator_disable_deferred(struct regulator *regulator, int ms)
mutex_lock
(
&
rdev
->
mutex
);
rdev
->
deferred_disables
++
;
mod_delayed_work
(
system_power_efficient_wq
,
&
rdev
->
disable_work
,
msecs_to_jiffies
(
ms
));
mutex_unlock
(
&
rdev
->
mutex
);
queue_delayed_work
(
system_power_efficient_wq
,
&
rdev
->
disable_work
,
msecs_to_jiffies
(
ms
));
return
0
;
}
EXPORT_SYMBOL_GPL
(
regulator_disable_deferred
);
...
...
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