diff options
author | Chuck Ebbert <76306.1226@compuserve.com> | 2006-12-06 20:14:07 -0500 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-12-06 20:14:07 -0500 |
commit | 8c89812684de3b47066d800031dfd7098abbdc74 (patch) | |
tree | 5ecd29411a637313a54876f71b10fc7467d07ec5 | |
parent | 516d2836434d279fef164bb1b964e83425d312d2 (diff) |
[PATCH] i386: remove IOPL check on task switch
IOPL is implicitly saved and restored on task switch,
so explicit check is no longer needed.
Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Andi Kleen <ak@suse.de>
-rw-r--r-- | arch/i386/kernel/process.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index 8f42659ef9d2..99308510a17c 100644 --- a/arch/i386/kernel/process.c +++ b/arch/i386/kernel/process.c | |||
@@ -675,12 +675,6 @@ struct task_struct fastcall * __switch_to(struct task_struct *prev_p, struct tas | |||
675 | write_pda(pcurrent, next_p); | 675 | write_pda(pcurrent, next_p); |
676 | 676 | ||
677 | /* | 677 | /* |
678 | * Restore IOPL if needed. | ||
679 | */ | ||
680 | if (unlikely(prev->iopl != next->iopl)) | ||
681 | set_iopl_mask(next->iopl); | ||
682 | |||
683 | /* | ||
684 | * Now maybe handle debug registers and/or IO bitmaps | 678 | * Now maybe handle debug registers and/or IO bitmaps |
685 | */ | 679 | */ |
686 | if (unlikely((task_thread_info(next_p)->flags & _TIF_WORK_CTXSW) | 680 | if (unlikely((task_thread_info(next_p)->flags & _TIF_WORK_CTXSW) |