From 7c08cd2bc783d0a076c42e9c792d109a53d6eebf Mon Sep 17 00:00:00 2001 From: ad Date: Wed, 3 Dec 2008 12:04:59 +0000 Subject: [PATCH] Don't abort pageidlezero unless a realtime thread wants to run. --- sys/arch/amd64/amd64/locore.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S index 771a392e9c5f..2b38d824b866 100644 --- a/sys/arch/amd64/amd64/locore.S +++ b/sys/arch/amd64/amd64/locore.S @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.49 2008/11/13 10:53:30 ad Exp $ */ +/* $NetBSD: locore.S,v 1.50 2008/12/03 12:04:59 ad Exp $ */ /* * Copyright-o-rama! @@ -1260,7 +1260,7 @@ ENTRY(sse2_idlezero_page) xorq %rax, %rax .align 16 1: - cmpl $0, CPUVAR(RESCHED) + testl $RESCHED_KPREEMPT, CPUVAR(RESCHED) jnz 2f movnti %rax, 0(%rdi) movnti %rax, 8(%rdi)