aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-07-16 09:44:29 -0400
committerIngo Molnar <mingo@elte.hu>2009-07-18 09:51:45 -0400
commitdef01bc53d03881acfc393bd10a5c7575187e008 (patch)
tree7b6a82ca80e95e3a3b5ea4f10adb6a1cdda277b5 /include/linux/sched.h
parent613afbf83298efaead05ebcac23d2285609d7160 (diff)
sched: Convert the only user of cond_resched_bkl to use cond_resched()
fs/locks.c:flock_lock_file() is the only user of cond_resched_bkl() This helper doesn't do anything more than cond_resched(). The latter naming is enough to explain that we are rescheduling if needed. The bkl suffix suggests another semantics but it's actually a synonym of cond_resched(). Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1247725694-6082-7-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index c41d424db887..cbbfca69aa4a 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2305,8 +2305,6 @@ extern int __cond_resched_softirq(void);
2305 __cond_resched_softirq(); \ 2305 __cond_resched_softirq(); \
2306}) 2306})
2307 2307
2308#define cond_resched_bkl() cond_resched()
2309
2310/* 2308/*
2311 * Does a critical section need to be broken due to another 2309 * Does a critical section need to be broken due to another
2312 * task waiting?: (technically does not depend on CONFIG_PREEMPT, 2310 * task waiting?: (technically does not depend on CONFIG_PREEMPT,