Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753140AbWKCGc5 (ORCPT ); Fri, 3 Nov 2006 01:32:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753142AbWKCGc5 (ORCPT ); Fri, 3 Nov 2006 01:32:57 -0500 Received: from liaag2aa.mx.compuserve.com ([149.174.40.154]:22741 "EHLO liaag2aa.mx.compuserve.com") by vger.kernel.org with ESMTP id S1753140AbWKCGc4 (ORCPT ); Fri, 3 Nov 2006 01:32:56 -0500 Date: Fri, 3 Nov 2006 01:27:37 -0500 From: Chuck Ebbert <76306.1226@compuserve.com> Subject: [patch] i386: remove IOPL check on task switch To: linux-kernel Cc: Linus Torvalds , Andrew Morton , Zachary Amsden , Andi Kleen Message-ID: <200611030130_MC3-1-D02A-DEB@compuserve.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 893 Lines: 28 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> --- 2.6.19-rc4-32smp.orig/arch/i386/kernel/process.c +++ 2.6.19-rc4-32smp/arch/i386/kernel/process.c @@ -681,12 +681,6 @@ struct task_struct fastcall * __switch_t loadsegment(gs, next->gs); /* - * Restore IOPL if needed. - */ - if (unlikely(prev->iopl != next->iopl)) - set_iopl_mask(next->iopl); - - /* * Now maybe handle debug registers and/or IO bitmaps */ if (unlikely((task_thread_info(next_p)->flags & _TIF_WORK_CTXSW) -- Chuck "Even supernovas have their duller moments." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/