Eliminate a pointless TLB flush from the SMP idle loop.

Submitted by:	Luoqi Chen <luoqi@watermarkgroup.com>
Reviewed by:	"John S. Dyson" <toor@dyson.iquest.net>
This commit is contained in:
Alan Cox 1999-03-20 18:44:13 +00:00
parent 22004b5952
commit 2618393ec3
3 changed files with 3 additions and 21 deletions

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: swtch.s,v 1.75 1998/07/28 17:35:09 bde Exp $
* $Id: swtch.s,v 1.76 1999/03/18 04:22:23 jlemon Exp $
*/
#include "npx.h"
@ -317,12 +317,6 @@ _idle:
.globl idle_loop
idle_loop:
#if defined(SWTCH_OPTIM_STATS)
incl _tlb_flush_count
#endif
movl %cr3,%eax /* ouch! */
movl %eax,%cr3
cmpl $0,_smp_active
jne 1f
cmpl $0,_cpuid

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: swtch.s,v 1.75 1998/07/28 17:35:09 bde Exp $
* $Id: swtch.s,v 1.76 1999/03/18 04:22:23 jlemon Exp $
*/
#include "npx.h"
@ -317,12 +317,6 @@ _idle:
.globl idle_loop
idle_loop:
#if defined(SWTCH_OPTIM_STATS)
incl _tlb_flush_count
#endif
movl %cr3,%eax /* ouch! */
movl %eax,%cr3
cmpl $0,_smp_active
jne 1f
cmpl $0,_cpuid

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: swtch.s,v 1.75 1998/07/28 17:35:09 bde Exp $
* $Id: swtch.s,v 1.76 1999/03/18 04:22:23 jlemon Exp $
*/
#include "npx.h"
@ -317,12 +317,6 @@ _idle:
.globl idle_loop
idle_loop:
#if defined(SWTCH_OPTIM_STATS)
incl _tlb_flush_count
#endif
movl %cr3,%eax /* ouch! */
movl %eax,%cr3
cmpl $0,_smp_active
jne 1f
cmpl $0,_cpuid