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:
parent
70ba7a32ce
commit
1c18b849ca
@ -33,7 +33,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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"
|
#include "npx.h"
|
||||||
@ -317,12 +317,6 @@ _idle:
|
|||||||
.globl idle_loop
|
.globl idle_loop
|
||||||
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
|
cmpl $0,_smp_active
|
||||||
jne 1f
|
jne 1f
|
||||||
cmpl $0,_cpuid
|
cmpl $0,_cpuid
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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"
|
#include "npx.h"
|
||||||
@ -317,12 +317,6 @@ _idle:
|
|||||||
.globl idle_loop
|
.globl idle_loop
|
||||||
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
|
cmpl $0,_smp_active
|
||||||
jne 1f
|
jne 1f
|
||||||
cmpl $0,_cpuid
|
cmpl $0,_cpuid
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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"
|
#include "npx.h"
|
||||||
@ -317,12 +317,6 @@ _idle:
|
|||||||
.globl idle_loop
|
.globl idle_loop
|
||||||
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
|
cmpl $0,_smp_active
|
||||||
jne 1f
|
jne 1f
|
||||||
cmpl $0,_cpuid
|
cmpl $0,_cpuid
|
||||||
|
Loading…
Reference in New Issue
Block a user