]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] i386: remove IOPL check on task switch
authorChuck Ebbert <76306.1226@compuserve.com>
Thu, 7 Dec 2006 01:14:07 +0000 (02:14 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Thu, 7 Dec 2006 01:14:07 +0000 (02:14 +0100)
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>
arch/i386/kernel/process.c

index 8f42659ef9d253addb5df1b4a0a14ec0580b60cc..99308510a17c7fdab49f6a90a1f09e9f9917cf37 100644 (file)
@@ -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
         */