summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-03-05 14:29:40 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-05-15 13:27:35 -0400
commitc3442697c2d73d3cdb9d4135cf630ad36ba8552f (patch)
treecc3a55e788483920839bd14a2f4fd670e1524d14 /kernel/sched
parentcee4393989333795ae04dc9f3b83a578afe3fca6 (diff)
softirq: Eliminate unused cond_resched_softirq() macro
The cond_resched_softirq() macro is not used anywhere in mainline, so this commit simplifies the kernel by eliminating it. Suggested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@redhat.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Eric Dumazet <edumazet@google.com> Tested-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/core.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 5e10aaeebfcc..6a09e6af64b9 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5012,20 +5012,6 @@ int __cond_resched_lock(spinlock_t *lock)
5012} 5012}
5013EXPORT_SYMBOL(__cond_resched_lock); 5013EXPORT_SYMBOL(__cond_resched_lock);
5014 5014
5015int __sched __cond_resched_softirq(void)
5016{
5017 BUG_ON(!in_softirq());
5018
5019 if (should_resched(SOFTIRQ_DISABLE_OFFSET)) {
5020 local_bh_enable();
5021 preempt_schedule_common();
5022 local_bh_disable();
5023 return 1;
5024 }
5025 return 0;
5026}
5027EXPORT_SYMBOL(__cond_resched_softirq);
5028
5029/** 5015/**
5030 * yield - yield the current processor to other threads. 5016 * yield - yield the current processor to other threads.
5031 * 5017 *