From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965128AbbI2NUH (ORCPT ); Tue, 29 Sep 2015 09:20:07 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:38425 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964974AbbI2NTy (ORCPT ); Tue, 29 Sep 2015 09:19:54 -0400 Date: Tue, 29 Sep 2015 15:19:51 +0200 From: Frederic Weisbecker To: Peter Zijlstra Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, oleg@redhat.com, umgwanakikbuti@gmail.com, tglx@linutronix.de, rostedt@goodmis.org Subject: Re: [RFC][PATCH 01/11] sched: Simplify INIT_PREEMPT_COUNT Message-ID: <20150929131950.GD31582@lerouge> References: <20150929092825.540553633@infradead.org> <20150929093519.706413197@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150929093519.706413197@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2015 at 11:28:26AM +0200, Peter Zijlstra wrote: > As per commit d86ee4809d03 ("sched: optimize cond_resched()") we need > PREEMPT_ACTIVE to avoid cond_resched() from working before the > scheduler is setup. > > However, keeping preemption disabled should do the same thing already, > making the PREEMPT_ACTIVE part entirely redundant. > > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Frederic Weisbecker