Просмотр исходного кода

[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>
Chuck Ebbert 18 лет назад
Родитель
Сommit
8c89812684
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      arch/i386/kernel/process.c

+ 0 - 6
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
 	 */