diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:26:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:05 -0400 |
commit | 77bf4400319db9d2a8af6b00c2be6faa0f3d07cb (patch) | |
tree | ddc8fd48349b8d4dd2c0b26bce7f52f79b4e4077 /include/asm-um/mmu_context.h | |
parent | ae2587e41254e48e670346aefa332d7469d86352 (diff) |
uml: remove code made redundant by CHOOSE_MODE removal
This patch makes a number of simplifications enabled by the removal of
CHOOSE_MODE. There were lots of functions that looked like
int foo(args){
foo_skas(args);
}
The bodies of foo_skas are now folded into foo, and their declarations (and
sometimes entire header files) are deleted.
In addition, the union uml_pt_regs, which was a union between the tt and skas
register formats, is now a struct, with the tt-mode arm of the union being
removed.
It turns out that usr2_handler was unused, so it is gone.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-um/mmu_context.h')
-rw-r--r-- | include/asm-um/mmu_context.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/include/asm-um/mmu_context.h b/include/asm-um/mmu_context.h index a4186af65f24..0c4a375000a9 100644 --- a/include/asm-um/mmu_context.h +++ b/include/asm-um/mmu_context.h | |||
@@ -29,7 +29,7 @@ static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) | |||
29 | * possible. | 29 | * possible. |
30 | */ | 30 | */ |
31 | if (old != new && (current->flags & PF_BORROWED_MM)) | 31 | if (old != new && (current->flags & PF_BORROWED_MM)) |
32 | switch_mm_skas(&new->context.skas.id); | 32 | __switch_mm(&new->context.skas.id); |
33 | } | 33 | } |
34 | 34 | ||
35 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | 35 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, |
@@ -41,7 +41,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | |||
41 | cpu_clear(cpu, prev->cpu_vm_mask); | 41 | cpu_clear(cpu, prev->cpu_vm_mask); |
42 | cpu_set(cpu, next->cpu_vm_mask); | 42 | cpu_set(cpu, next->cpu_vm_mask); |
43 | if(next != &init_mm) | 43 | if(next != &init_mm) |
44 | switch_mm_skas(&next->context.skas.id); | 44 | __switch_mm(&next->context.skas.id); |
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
@@ -50,21 +50,9 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, | |||
50 | { | 50 | { |
51 | } | 51 | } |
52 | 52 | ||
53 | extern int init_new_context_skas(struct task_struct *task, | 53 | extern int init_new_context(struct task_struct *task, struct mm_struct *mm); |
54 | struct mm_struct *mm); | ||
55 | 54 | ||
56 | static inline int init_new_context(struct task_struct *task, | 55 | extern void destroy_context(struct mm_struct *mm); |
57 | struct mm_struct *mm) | ||
58 | { | ||
59 | return(init_new_context_skas(task, mm)); | ||
60 | } | ||
61 | |||
62 | extern void destroy_context_skas(struct mm_struct *mm); | ||
63 | |||
64 | static inline void destroy_context(struct mm_struct *mm) | ||
65 | { | ||
66 | destroy_context_skas(mm); | ||
67 | } | ||
68 | 56 | ||
69 | #endif | 57 | #endif |
70 | 58 | ||