From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXQsd-00059A-P8 for qemu-devel@nongnu.org; Tue, 18 Jul 2017 07:41:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXQsa-0004x5-NW for qemu-devel@nongnu.org; Tue, 18 Jul 2017 07:41:31 -0400 Message-ID: <1500375719.2865.115.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Tue, 18 Jul 2017 21:01:59 +1000 In-Reply-To: <8760eqe2og.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> References: <20170717041639.16137-1-nikunj@linux.vnet.ibm.com> <20170718044619.GC3140@umbus.fritz.box> <8760eqe2og.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3] spapr: disable decrementer during reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikunj A Dadhania , David Gibson Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, clg@kaod.org, bharata@linux.vnet.ibm.com On Tue, 2017-07-18 at 10:56 +0530, Nikunj A Dadhania wrote: > In case of reboot, all CPUs are resumed after reboot. So we check the > next condition cpu_has_work() in cpu_thread_is_idle(), where we see a > DECR interrupt and remove the CPU from halted state as the CPU has work. Shouldn't we put them back in the stopped state then ? Cheers, Ben.