From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753819AbbKWNFk (ORCPT ); Mon, 23 Nov 2015 08:05:40 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:45741 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753713AbbKWNFi (ORCPT ); Mon, 23 Nov 2015 08:05:38 -0500 Date: Mon, 23 Nov 2015 14:05:33 +0100 From: Peter Zijlstra To: Lianwei Wang Cc: linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org, rjw@rjwysocki.net, mingo@redhat.com Subject: Re: [PATCH] sched: idle: move need_resched check after function rcu_idle_enter Message-ID: <20151123130533.GY3816@twins.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 21, 2015 at 01:02:02AM -0800, Lianwei Wang wrote: > The rcu_idle_endter may call wakeup_softirqd to set the need resched > flag on idle process. But if we don't check it after that, then the > cpu will enter idle state with RESCHED flag set and can not be woken > up by wakeup/resched call anymore. Fair enough; but which cpuidle driver did you observe that with? All the ones I checked test for need_resched again after this.