From: Chuck Ebbert <76306.1226@compuserve.com> Date: Thu, 7 Dec 2006 01:14:07 +0000 (+0100) Subject: [PATCH] i386: remove IOPL check on task switch X-Git-Tag: v2.6.20-rc1~145^2^2~8^2~81 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8c89812684de3b47066d800031dfd7098abbdc74;p=linux-2.6-omap-h63xx.git [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 --- diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c index 8f42659ef9d..99308510a17 100644 --- a/arch/i386/kernel/process.c +++ b/arch/i386/kernel/process.c @@ -674,12 +674,6 @@ struct task_struct fastcall * __switch_to(struct task_struct *prev_p, struct tas write_pda(pcurrent, next_p); - /* - * Restore IOPL if needed. - */ - if (unlikely(prev->iopl != next->iopl)) - set_iopl_mask(next->iopl); - /* * Now maybe handle debug registers and/or IO bitmaps */