Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6371948yba; Thu, 11 Apr 2019 18:46:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhfRYYSCHsrtiH2Hs9XE/KlhnZhn/v460bdjyh7LiYd41ahz5q03MszYmtGZ1nO4XQXlIb X-Received: by 2002:a17:902:703:: with SMTP id 3mr54573745pli.224.1555033610315; Thu, 11 Apr 2019 18:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555033610; cv=none; d=google.com; s=arc-20160816; b=qet+M2TDTC9mD6huRPl/C9EHMScY7+n+tDS8GVe0zAFJ3HtuTmsoTSDH4EtFjvdtcZ 4xDyTbu4x2+ZUREWmtOgWgYTPVCQ5XvxaH81+mqInmYwzzuJQnNiA2wYRpXJ1ypxin4E ZTxLz4ndPjxjaCwlxAPVH62KfjrmsJ/IkiduVvGQzXWOmZ+0SdnTxq5kfPboKlNBpqQD yH6kGtbZ3S2HJuy94tsFK+kibAFWUGhqJpZu2UCd4CZpkVhbsHY76DWq93bQmW9NzTcS RloEC9ZYYoaghQ8VZd0+ahNro95LDVN0ntXFXVMSqBTuoNhzfT3nj++7SunuWTiJgyUn EKEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pblt/DbI2rrkAjQaock04SPfGqK6ajdo6vVkfSBycB4=; b=UxNEqRLZp8W1MV8noLegqO5WzNmgO2KngCip0vmyL0PNGz3FdNMW4Dmc/1KJL1EYHm pwLScBOlbdkllEXYYAeNtNpqHXOHU7qJCKg2J27mBQb0ssbVQpBzl6/S75Op/pWObrCT P6wg6N6RCjhn3pdEqseeiv2zqfcdyzyKgklZsmInRF2kmq393TPgDToZYlXfyN6LyGYS CaASL0ciOeeXq92nBLYLOKK7n2oqeJBYsV6spcKK6NhnidXhgoZxJxJALYTNO4Iy5Qay J+tC3ZGp98eLUWaUjUcM2rX6MdyU+uoP0hZZnGKih00FJpf6jMu7BzhzBzyBVMwW2xQ4 oykQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TsdtDNvd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d69si19677197pgc.451.2019.04.11.18.46.34; Thu, 11 Apr 2019 18:46:50 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=TsdtDNvd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726690AbfDLBoW (ORCPT + 99 others); Thu, 11 Apr 2019 21:44:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:54840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfDLBoR (ORCPT ); Thu, 11 Apr 2019 21:44:17 -0400 Received: from sinanubuntu1604.mkjiurmyylmellclgttazegk5f.bx.internal.cloudapp.net (unknown [52.191.113.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 22B452186A; Fri, 12 Apr 2019 01:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555033456; bh=sMXj6p0UiM9Amcwzg4iaYGcARDzEkA14Ho04H4a8mFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TsdtDNvdT3C7EcvjVvjp17ONlC1KylxwogEswxif5hVuRJ+1UG9V63IkUf2FgNsTX /93nMFsiYhlcMvGL1S1bGZ5tUY44w7wSTQP8j0P7G81DvAJPyIOBWX4uCp5EBBG2WD 4exGn41FFO7xzAGC1Ut1EirJsAnEB62hi6dNhLn0= From: Sinan Kaya To: linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org, keescook@chromium.org, Sinan Kaya , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org (open list:TENSILICA XTENSA PORT (xtensa)) Subject: [PATCH v4 4/5] xtensa: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC Date: Fri, 12 Apr 2019 01:43:54 +0000 Message-Id: <20190412014355.25307-5-okaya@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190412014355.25307-1-okaya@kernel.org> References: <20190412014355.25307-1-okaya@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_DEBUG_KERNEL should not impact code generation. Use the newly defined CONFIG_DEBUG_MISC instead to keep the current code. Signed-off-by: Sinan Kaya --- arch/xtensa/include/asm/irqflags.h | 2 +- arch/xtensa/kernel/smp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/include/asm/irqflags.h b/arch/xtensa/include/asm/irqflags.h index 9b5e8526afe5..12890681587b 100644 --- a/arch/xtensa/include/asm/irqflags.h +++ b/arch/xtensa/include/asm/irqflags.h @@ -27,7 +27,7 @@ static inline unsigned long arch_local_irq_save(void) { unsigned long flags; #if XTENSA_FAKE_NMI -#if defined(CONFIG_DEBUG_KERNEL) && (LOCKLEVEL | TOPLEVEL) >= XCHAL_DEBUGLEVEL +#if defined(CONFIG_DEBUG_MISC) && (LOCKLEVEL | TOPLEVEL) >= XCHAL_DEBUGLEVEL unsigned long tmp; asm volatile("rsr %0, ps\t\n" diff --git a/arch/xtensa/kernel/smp.c b/arch/xtensa/kernel/smp.c index 3699d6d3e479..83b244ce61ee 100644 --- a/arch/xtensa/kernel/smp.c +++ b/arch/xtensa/kernel/smp.c @@ -126,7 +126,7 @@ void secondary_start_kernel(void) init_mmu(); -#ifdef CONFIG_DEBUG_KERNEL +#ifdef CONFIG_DEBUG_MISC if (boot_secondary_processors == 0) { pr_debug("%s: boot_secondary_processors:%d; Hanging cpu:%d\n", __func__, boot_secondary_processors, cpu); -- 2.21.0