From patchwork Fri Feb 12 18:14:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 61884 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp992672lbl; Fri, 12 Feb 2016 10:37:14 -0800 (PST) X-Received: by 10.98.71.130 with SMTP id p2mr4254514pfi.99.1455302234026; Fri, 12 Feb 2016 10:37:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gj3si21376340pac.243.2016.02.12.10.37.13; Fri, 12 Feb 2016 10:37:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbcBLShJ (ORCPT + 30 others); Fri, 12 Feb 2016 13:37:09 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33571 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbcBLShH (ORCPT ); Fri, 12 Feb 2016 13:37:07 -0500 Received: by mail-pa0-f53.google.com with SMTP id fl4so38646943pad.0 for ; Fri, 12 Feb 2016 10:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=uadENSDpG2N8vG8RCc1nL++2VYSs+VuGGuMtqMGoGHA=; b=in6hkLSGFFbN/nyO+SjWOAJCIlzX+w5PGpQj5FtLRjJg6kVXTcIwqcHgP/2b1CmrVP fa4RiUZ7rKLcD7UcqGav8rJc/gqojSvINGyv64pIjkHnX0BuiIGaJ5/F53iNR+kvtrh8 hXqLJKDxN2vTSs6MKRFRZu+rqpUl923lkAxWA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uadENSDpG2N8vG8RCc1nL++2VYSs+VuGGuMtqMGoGHA=; b=h605nqOlMD8eSUlbNbkcpmxDtVrJx6KUK/KePc6BLPEg5CpXuTBhUZWTTwxk+JatYo 0PWrKUfD8KPpeLPvlFHvnL9EXg5Q1NdORbNSfvGCbt3c6xFpZ1zK5Oh3ZBDQ7yRAGrqC u7tcTeSshh9VaTnIdbXlaxJNPP0TIgQmiearcNDzjiNOLhiD9qsmw6Grg3QDHMqfEi6f RzRHv5oVGpXckrA26nG2c+UX8GfK7oD74FYc9lwJeQUQF/BLjNH/ZdDCackygVqvlpAs 2kd31+auDpR22V4g/Ijp4JK8lZiU/H7LE1WKndEPUdx3B33UsdCkVNcv023TUqa2ThUM SFXQ== X-Gm-Message-State: AG10YOSiN9ztxZrNHfjpd0ckSHDbzzO7OagCssMvPGg6EcRqIMtVjp5wYNK0ycwpf6DwTg3T X-Received: by 10.67.7.1 with SMTP id cy1mr4250541pad.123.1455302226906; Fri, 12 Feb 2016 10:37:06 -0800 (PST) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id d8sm21076979pas.14.2016.02.12.10.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Feb 2016 10:37:06 -0800 (PST) From: Yang Shi To: mingo@redhat.com, peterz@infradead.org Cc: linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, yang.shi@linaro.org Subject: [PATCH] lib/Kconfig: make PREEMPT_COUNT depend on PREEMPT in DEBUG_ATOMIC_SLEEP Date: Fri, 12 Feb 2016 10:14:22 -0800 Message-Id: <1455300862-453-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building non-preempt kernel (PREEMPT_NONE), PREEMPT_COUNT is still enabled if DEBUG_ATOMIC_SLEEP is enabled. But, it sounds not make sense to have PREEMPT_COUNT set in non-preempt kernel. So, make PREEMPT_COUNT depend on PREEMPT here. Signed-off-by: Yang Shi --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.0.2 diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index ecb9e75..a5b6e11 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1075,7 +1075,7 @@ config DEBUG_LOCKDEP config DEBUG_ATOMIC_SLEEP bool "Sleep inside atomic section checking" - select PREEMPT_COUNT + select PREEMPT_COUNT if PREEMPT depends on DEBUG_KERNEL help If you say Y here, various routines which may sleep will become very