From b0fe57815be12ef0c972cdfe87b4c5b89d4d2809 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sun, 17 Jul 2011 22:51:33 +0200 Subject: cond-resched-lock-rt-tweak.patch Signed-off-by: Thomas Gleixner diff --git a/include/linux/sched.h b/include/linux/sched.h index df281c5..a32ddf5 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2567,7 +2567,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 -- cgit v0.10.2