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:
55101e2
)
tick-common: Fix wrong check in tick_check_replacement()
author
Viresh Kumar
<
[email protected]
>
Tue, 15 Apr 2014 05:24:37 +0000
(10:54 +0530)
committer
Thomas Gleixner
<
[email protected]
>
Tue, 15 Apr 2014 18:26:44 +0000
(20:26 +0200)
tick_check_replacement() returns if a replacement of clock_event_device is
possible or not. It does this as the first check:
if (tick_check_percpu(curdev, newdev, smp_processor_id()))
return false;
Thats wrong. tick_check_percpu() returns true when the device is
useable. Check for false instead.
[ tglx: Massaged changelog ]
Signed-off-by: Viresh Kumar <
[email protected]
>
Cc: <
[email protected]
> # v3.11+
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/486a02efe0246635aaba786e24b42d316438bf3b.1397537987.git.viresh.kumar@linaro.org
Signed-off-by: Thomas Gleixner <
[email protected]
>
kernel/time/tick-common.c
patch
|
blob
|
history
diff --git
a/kernel/time/tick-common.c
b/kernel/time/tick-common.c
index 015661279b682fea4fcbc3a393d9e24760bf8b34..0a0608edeb2665e88d2cb1c917b4cf4f112a4e8e 100644
(file)
--- a/
kernel/time/tick-common.c
+++ b/
kernel/time/tick-common.c
@@
-276,7
+276,7
@@
static bool tick_check_preferred(struct clock_event_device *curdev,
bool tick_check_replacement(struct clock_event_device *curdev,
struct clock_event_device *newdev)
{
- if (tick_check_percpu(curdev, newdev, smp_processor_id()))
+ if (
!
tick_check_percpu(curdev, newdev, smp_processor_id()))
return false;
return tick_check_preferred(curdev, newdev);