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:
9390675
)
sched/preempt/x86: Fix voluntary preempt for x86
author
Peter Zijlstra
<
[email protected]
>
Wed, 22 Jan 2014 10:24:35 +0000
(11:24 +0100)
committer
Ingo Molnar
<
[email protected]
>
Thu, 23 Jan 2014 13:48:35 +0000
(14:48 +0100)
The #ifdef CONFIG_PREEMPT is both not needed and wrong.
Its not required because asm/preempt.h should provide
{set,clear}_preempt_need_resched() regardless and its wrong because
for voluntary preempt we still rely on PREEMPT_NEED_RESCHED.
Reported-and-Tested-by: Markus Trippelsdorf <
[email protected]
>
Fixes: 8cb75e0c4ec9 ("sched/preempt: Fix up missed PREEMPT_NEED_RESCHED folding")
Signed-off-by: Peter Zijlstra <
[email protected]
>
Cc: Dipankar Sarma <
[email protected]
>
Cc: "Paul E. McKenney" <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
include/linux/preempt.h
patch
|
blob
|
history
diff --git
a/include/linux/preempt.h
b/include/linux/preempt.h
index 59749fc48328181452537d226f632559371a7147..de83b4eb164287db363328f87c0f8af216497a91 100644
(file)
--- a/
include/linux/preempt.h
+++ b/
include/linux/preempt.h
@@
-134,7
+134,6
@@
do { \
#undef preempt_check_resched
#endif
-#ifdef CONFIG_PREEMPT
#define preempt_set_need_resched() \
do { \
set_preempt_need_resched(); \
@@
-144,10
+143,6
@@
do { \
if (tif_need_resched()) \
set_preempt_need_resched(); \
} while (0)
-#else
-#define preempt_set_need_resched() do { } while (0)
-#define preempt_fold_need_resched() do { } while (0)
-#endif
#ifdef CONFIG_PREEMPT_NOTIFIERS