diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2013-02-13 10:59:53 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2013-09-13 12:33:18 -0400 |
commit | ffeab02c35b3237e99944c586ea236882c38af57 (patch) | |
tree | e431b98c8277652957dd7b8686510df06bf939fa /include | |
parent | 8916a1cfe09d3a99d2b1413052080073aeef9fd1 (diff) |
x86/32: Use kmap switch for non highmem as well
Even with CONFIG_HIGHMEM=n we need to take care of the "atomic"
mappings which are installed via iomap_atomic.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable-rt@vger.kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 380e5039a9bd..41c097989f60 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1608,9 +1608,11 @@ struct task_struct { struct rcu_head put_rcu; int softirq_nestcnt; #endif -#if defined CONFIG_PREEMPT_RT_FULL && defined CONFIG_HIGHMEM +#ifdef CONFIG_PREEMPT_RT_FULL +# if defined CONFIG_HIGHMEM || defined CONFIG_X86_32 int kmap_idx; pte_t kmap_pte[KM_TYPE_NR]; +# endif #endif #ifdef CONFIG_DEBUG_PREEMPT |