summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-17 22:51:33 +0200
committerClark Williams <williams@redhat.com>2012-03-13 12:40:03 -0500
commita9877b7d1980ed638f863530c9a95e7653402d0c (patch)
treee5f98bde00cfcd28fe436c14e340961a0cd206e0 /include
parent9bc583a7d637c9e99c5f82aacd83bc512a3664be (diff)
cond-resched-lock-rt-tweak.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 99e7f8bca335..175aaeec5b27 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2599,7 +2599,7 @@ extern int _cond_resched(void);
extern int __cond_resched_lock(spinlock_t *lock);
-#ifdef CONFIG_PREEMPT_COUNT
+#if defined(CONFIG_PREEMPT_COUNT) && !defined(CONFIG_PREEMPT_RT_FULL)
#define PREEMPT_LOCK_OFFSET PREEMPT_OFFSET
#else
#define PREEMPT_LOCK_OFFSET 0