From patchwork Fri Nov 9 23:10:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10676675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AD385109C for ; Fri, 9 Nov 2018 23:12:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FAFC2F164 for ; Fri, 9 Nov 2018 23:12:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93BDC2F16E; Fri, 9 Nov 2018 23:12:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E9EB2F164 for ; Fri, 9 Nov 2018 23:12:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728927AbeKJIyE (ORCPT ); Sat, 10 Nov 2018 03:54:04 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44736 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728928AbeKJIyE (ORCPT ); Sat, 10 Nov 2018 03:54:04 -0500 Received: by mail-lj1-f195.google.com with SMTP id k19-v6so2945673lji.11 for ; Fri, 09 Nov 2018 15:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zikFil/AtYdu6Kux+125DpNglxhjQyI/EB/SaAFQ3pM=; b=NySe9vGirPKOeoUta4zyOtLJVYIqmQ8s2VS0BBRcj6i1YKTxY5ycDcnlZwwKO7x8Qu sDh6Oo0BpWljCqqWRW1GB79qRExjB429UhlI+XgZ2X3NhwqcufuUMIpF+KGccM9+MzZL jNegXkMX1OqO0M/PnKQ6MCwLNTHO7p9yQvHf4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zikFil/AtYdu6Kux+125DpNglxhjQyI/EB/SaAFQ3pM=; b=SqSxSc7GWgP1/O21wJh8rSbTU2h6mq1OvVdrhJ/Kfgd3QUVddbYGPqe56KVJcyjLI6 EVL1ge1hhbP1EjZay03dCACN0EO40osjW3bW6QuE37LnytZHjjkN6EQH6wZCulh1l4h6 B4i7/uala6yWEdHxeTVX5vCbLgpL9oB+TFGrQHLDtkGXqcxwm/7gdH4G0tjXb5BAeJmk YlYuwF2EXTU6xDMQB1EUGy0aRfmIAPmNLKbrldizpIFJB3hPF/ga3DoWilPncPFj+Wr5 xJwYjRLlLNilN9F1RZzka/jkro+cLr6AJh3YiT9+ZoulKpq+ZU+/+GyX8VCdhdZlV6Sh KusA== X-Gm-Message-State: AGRZ1gKsis/uApeLB7pYDC8RkPB4R7ko1S5vtiydttmboWrN9rmLYZ85 F5One/l5mGSV8muWXV+ODq7ZMg== X-Google-Smtp-Source: AJdET5fcezmWo/EYhEv4h6PTkhr1PwuoYpPcKtAVIkVdn4bIiZHvdJH/sWFYpdwEZwBMX5+ClME7bg== X-Received: by 2002:a2e:9bc3:: with SMTP id w3-v6mr6479464ljj.70.1541805078151; Fri, 09 Nov 2018 15:11:18 -0800 (PST) Received: from prevas-ravi.prevas.se (dhcp-5-186-114-252.cgn.ip.fibianet.dk. [5.186.114.252]) by smtp.gmail.com with ESMTPSA id x16sm1584012lff.26.2018.11.09.15.11.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Nov 2018 15:11:17 -0800 (PST) From: Rasmus Villemoes To: Andrew Morton , Jason Baron Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , linux-acpi@vger.kernel.org, "Rafael J . Wysocki" Subject: [PATCH v3 15/23] ACPI: use proper DYNAMIC_DEBUG_BRANCH macro Date: Sat, 10 Nov 2018 00:10:13 +0100 Message-Id: <20181109231021.11658-16-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.19.1.6.gbde171bbf5 In-Reply-To: <20181109231021.11658-1-linux@rasmusvillemoes.dk> References: <20181009112013.14238-1-linux@rasmusvillemoes.dk> <20181109231021.11658-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP dynamic debug may be implemented via static keys, but ACPI is missing out on that runtime benefit since it open-codes one possible definition of DYNAMIC_DEBUG_BRANCH. Cc: linux-acpi@vger.kernel.org Acked-by: Jason Baron Acked-by: Rafael J. Wysocki Signed-off-by: Rasmus Villemoes --- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index ed80f147bd50..052e6492ebd7 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -980,7 +980,7 @@ void __acpi_handle_debug(struct _ddebug *descriptor, acpi_handle handle, const c #define acpi_handle_debug(handle, fmt, ...) \ do { \ DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ - if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \ + if (DYNAMIC_DEBUG_BRANCH(descriptor)) \ __acpi_handle_debug(&descriptor, handle, pr_fmt(fmt), \ ##__VA_ARGS__); \ } while (0)