|
@@ -1,28 +1,6 @@
|
|
#ifndef __I386_SCHED_H
|
|
#ifndef __I386_SCHED_H
|
|
#define __I386_SCHED_H
|
|
#define __I386_SCHED_H
|
|
|
|
|
|
-#include <asm/desc.h>
|
|
|
|
-#include <asm/atomic.h>
|
|
|
|
-#include <asm/pgalloc.h>
|
|
|
|
-#include <asm/tlbflush.h>
|
|
|
|
-#include <asm/paravirt.h>
|
|
|
|
-#ifndef CONFIG_PARAVIRT
|
|
|
|
-#include <asm-generic/mm_hooks.h>
|
|
|
|
-
|
|
|
|
-static inline void paravirt_activate_mm(struct mm_struct *prev,
|
|
|
|
- struct mm_struct *next)
|
|
|
|
-{
|
|
|
|
-}
|
|
|
|
-#endif /* !CONFIG_PARAVIRT */
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
- * Used for LDT copy/destruction.
|
|
|
|
- */
|
|
|
|
-int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
|
|
|
|
-void destroy_context(struct mm_struct *mm);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
|
|
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
|
|
{
|
|
{
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|
|
@@ -75,10 +53,4 @@ static inline void switch_mm(struct mm_struct *prev,
|
|
#define deactivate_mm(tsk, mm) \
|
|
#define deactivate_mm(tsk, mm) \
|
|
asm("movl %0,%%gs": :"r" (0));
|
|
asm("movl %0,%%gs": :"r" (0));
|
|
|
|
|
|
-#define activate_mm(prev, next) \
|
|
|
|
-do { \
|
|
|
|
- paravirt_activate_mm((prev), (next)); \
|
|
|
|
- switch_mm((prev), (next), NULL); \
|
|
|
|
-} while (0);
|
|
|
|
-
|
|
|
|
#endif
|
|
#endif
|