summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManfred Spraul <manfred@colorfullife.com>2002-11-03 00:38:13 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-11-03 00:38:13 -0800
commitcc1741c0e43ef1fccf8ca4265873593073c1153f (patch)
tree6ebd355f42175adb049be58243b343ece102a659 /include
parent0605bb238b4469db0ed348b2dfed4eca07d37012 (diff)
[PATCH] complete the move of the LDT code into
The i386 LDT code had it's own set of arch hooks (??_segments), I've replaced most of them with the mmu context hooks in a previous patch. The attached patch completes that change: replace release_segments with destroy_context. The patch is part of the -ac kernels in 2.4. The patch breaks x86-64, Andi Kleen promised to send you the corresponding s/release_segments/destroy_context/ patch.
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/mmu_context.h4
-rw-r--r--include/asm-i386/processor.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/include/asm-i386/mmu_context.h b/include/asm-i386/mmu_context.h
index 2b64727e67bd..1bacef727bba 100644
--- a/include/asm-i386/mmu_context.h
+++ b/include/asm-i386/mmu_context.h
@@ -8,10 +8,10 @@
#include <asm/tlbflush.h>
/*
- * possibly do the LDT unload here?
+ * Used for LDT copy/destruction.
*/
-#define destroy_context(mm) do { } while(0)
int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
+void destroy_context(struct mm_struct *mm);
#ifdef CONFIG_SMP
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index 60e2f452a043..360efe8de768 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -434,9 +434,6 @@ extern void release_thread(struct task_struct *);
*/
extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
-/* Release all segment info associated with a VM */
-extern void release_segments(struct mm_struct * mm);
-
extern unsigned long thread_saved_pc(struct task_struct *tsk);
unsigned long get_wchan(struct task_struct *p);