Skip to content

Commit

Permalink
[PATCH] i386: remove IOPL check on task switch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chuck Ebbert authored and Andi Kleen committed Dec 7, 2006
1 parent 516d283 commit 8c89812
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/i386/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 8c89812

Please sign in to comment.