projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e83d0a4
)
clockevents: Do not suspend/resume if unused
author
Alexandre Belloni
<
[email protected]
>
Fri, 16 Jan 2015 09:05:51 +0000
(10:05 +0100)
committer
Thomas Gleixner
<
[email protected]
>
Tue, 26 May 2015 23:03:38 +0000
(
01:03
+0200)
There is no point in calling suspend/resume for unused clockevents as
they are already stopped and disabled.
This is really important for AT91 as the hardware is a trainwreck and
takes ages to synchronize.
Reported-by: Sylvain Rochet <
[email protected]
>
Signed-off-by: Alexandre Belloni <
[email protected]
>
Cc: Daniel Lezcano <
[email protected]
>
Cc: Nicolas Ferre <
[email protected]
>
Cc: Boris Brezillon <
[email protected]
>
Cc: Maxime Ripard <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/1421399151-26800-1-git-send-email-alexandre.belloni@free-electrons.com
Signed-off-by: Thomas Gleixner <
[email protected]
>
kernel/time/clockevents.c
patch
|
blob
|
history
diff --git
a/kernel/time/clockevents.c
b/kernel/time/clockevents.c
index 4922f1b805ea8f8b764879bc7a721539a94ce4a8..2a5c369e50ab4244c237d51b33e9efd399d0bb74 100644
(file)
--- a/
kernel/time/clockevents.c
+++ b/
kernel/time/clockevents.c
@@
-638,7
+638,7
@@
void clockevents_suspend(void)
struct clock_event_device *dev;
list_for_each_entry_reverse(dev, &clockevent_devices, list)
- if (dev->suspend)
+ if (dev->suspend
&& dev->mode != CLOCK_EVT_MODE_UNUSED
)
dev->suspend(dev);
}
@@
-650,7
+650,7
@@
void clockevents_resume(void)
struct clock_event_device *dev;
list_for_each_entry(dev, &clockevent_devices, list)
- if (dev->resume)
+ if (dev->resume
&& dev->mode != CLOCK_EVT_MODE_UNUSED
)
dev->resume(dev);
}