From owner-freebsd-current@freebsd.org Tue Jan 17 17:47:23 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A047CB49FF for ; Tue, 17 Jan 2017 17:47:23 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2D59D1759; Tue, 17 Jan 2017 17:47:22 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0DA291FE025; Tue, 17 Jan 2017 18:46:57 +0100 (CET) Subject: Re: Strange issue after early AP startup To: John Baldwin References: <3466870.vFI8cjabAc@ralph.baldwin.cx> <264c5dd8-d82d-3326-7de5-96b0bb96ac01@selasky.org> <2215603.KuBd8pM5Pm@ralph.baldwin.cx> Cc: FreeBSD Current , Konstantin Belousov From: Hans Petter Selasky Message-ID: <17c85624-9a8b-183b-7e3b-0169b0c53a39@selasky.org> Date: Tue, 17 Jan 2017 18:46:40 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <2215603.KuBd8pM5Pm@ralph.baldwin.cx> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 17:47:23 -0000 On 01/17/17 16:50, John Baldwin wrote: > Index: kern_clocksource.c > =================================================================== > --- kern_clocksource.c (revision 312301) > +++ kern_clocksource.c (working copy) > @@ -503,7 +503,12 @@ configtimer(int start) > state->nextevent = SBT_MAX; > else > #endif > + if (next < state->nextcall) > state->nextevent = next; > + else if (state->nextcall < now) > + state->nextevent = now; > + else > + state->nextevent = state->nextcall; > if (periodic) > state->nexttick = next; > else > @@ -511,8 +516,6 @@ configtimer(int start) > state->nexthard = next; > state->nextstat = next; > state->nextprof = next; > - state->nextcall = next; > - state->nextcallopt = next; > hardclock_sync(cpu); > } > busy = 0; This patch makes it worse. Now I don't even reach the login prompt. --HPS