diff options
author | Peter Zijlstra <peterz@infradead.org> | 2011-07-28 10:43:51 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-03-06 10:18:02 -0600 |
commit | dc5dc9390bcf9925f9e6e884d5f367c9336e9033 (patch) | |
tree | daceeb5fde036fe46f040542d1d856e15463f67c /include | |
parent | b5baa2bcf62daf5bad9852fedef886a927887b4f (diff) |
mm, rt: kmap_atomic scheduling
In fact, with migrate_disable() existing one could play games with
kmap_atomic. You could save/restore the kmap_atomic slots on context
switch (if there are any in use of course), this should be esp easy now
that we have a kmap_atomic stack.
Something like the below.. it wants replacing all the preempt_disable()
stuff with pagefault_disable() && migrate_disable() of course, but then
you can flip kmaps around like below.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
[dvhart@linux.intel.com: build fix]
Link: http://lkml.kernel.org/r/1311842631.5890.208.camel@twins
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a84a90152121..1f6b11ad5312 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -63,6 +63,7 @@ struct sched_param { #include <linux/nodemask.h> #include <linux/mm_types.h> +#include <asm/kmap_types.h> #include <asm/system.h> #include <asm/page.h> #include <asm/ptrace.h> @@ -1603,6 +1604,10 @@ struct task_struct { struct rcu_head put_rcu; int softirq_nestcnt; #endif +#if defined CONFIG_PREEMPT_RT_FULL && defined CONFIG_HIGHMEM + int kmap_idx; + pte_t kmap_pte[KM_TYPE_NR]; +#endif }; #ifdef CONFIG_PREEMPT_RT_FULL |