summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Stone <rstone@FreeBSD.org>2013-06-28 15:55:30 +0000
committerRyan Stone <rstone@FreeBSD.org>2013-06-28 15:55:30 +0000
commit4a7d0bfcaa4a2acb63d1d9d56eb7693e682db158 (patch)
tree4ca3993bd944a09d4ab9682fa85cf585be099ca8
parent2df053920025c1c2bf908e291a53e3ecfa2cd7b1 (diff)
Notes
-rw-r--r--sys/kern/kern_clock.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 2841f8c3f047..4cfd219590b8 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -216,13 +216,8 @@ deadlkres(void)
}
FOREACH_THREAD_IN_PROC(p, td) {
- /*
- * Once a thread is found in "interesting"
- * state a possible ticks wrap-up needs to be
- * checked.
- */
thread_lock(td);
- if (TD_ON_LOCK(td) && ticks < td->td_blktick) {
+ if (TD_ON_LOCK(td)) {
/*
* The thread should be blocked on a
@@ -247,8 +242,7 @@ deadlkres(void)
__func__, td, tticks);
}
} else if (TD_IS_SLEEPING(td) &&
- TD_ON_SLEEPQ(td) &&
- ticks < td->td_blktick) {
+ TD_ON_SLEEPQ(td)) {
/*
* Check if the thread is sleeping on a