From patchwork Tue Oct 9 11:20:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10632357 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 B9F64112B for ; Tue, 9 Oct 2018 11:21:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B7E9289FB for ; Tue, 9 Oct 2018 11:21:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9015228A73; Tue, 9 Oct 2018 11:21:58 +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 42CD3289FB for ; Tue, 9 Oct 2018 11:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726771AbeJIShG (ORCPT ); Tue, 9 Oct 2018 14:37:06 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43774 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727471AbeJIShF (ORCPT ); Tue, 9 Oct 2018 14:37:05 -0400 Received: by mail-ed1-f68.google.com with SMTP id y20-v6so1305247eds.10 for ; Tue, 09 Oct 2018 04:20:36 -0700 (PDT) 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=YnEe4RJi9cJsTZRq5G9IiFZ3ouBP3ndXXuRWxyHLTBA=; b=Q91B24AhIgPoFCJs2MwZ/Uo5Xg9F8cKgdwq1EOJLna5ELZcnp57Z25Ex2nByf+gglL rz7130IR22TomcVMs3SZKeSZIKngjYkch7Lt3WAvFPuStpLNyiDWpdEUEiQDd7YYa5kX 8IGjClBlko4OXO1Y5yn9/DQFM6cEX44/Y7LoY= 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=YnEe4RJi9cJsTZRq5G9IiFZ3ouBP3ndXXuRWxyHLTBA=; b=Z7gHxneLJP1vfmtQeUCJKNPP+3nSj4bPU83X1j5HPwXi33nID6XKDAs2YjsHb5JKqw MHAvhAqBkHo2/zfSSEmvlBXMmNeIjkpW7oWGJRY0OK+I93XqBxR12Mtnkm3tMxx/CtEX PFrmjXO70/laAKehXPePhiWRZlnSGUUz1QD4ZIgQD/VqP/nNSbpiaHeGmQDz8DHQUCQc XzS6cgwZ7puLGuq/9ZZt/Em+vuI7QCKMHLq6m1MruKA6Hwlrrpnm5LOb9oZjuoXTTbNn p1bk+UlQQ7GR2ltw+mcS+adqD9aCrtoU4BMbMnxDfh/eEYLI1Lxdz9yZr8abXhfAg06l 7s6w== X-Gm-Message-State: ABuFfogz2dYbUOVyzYhu3f+Wo90UJK+k7ZdRinld5G1IPQSXTiGWh+/s LA42RqYvxGuridoeakLTYuYUMg== X-Google-Smtp-Source: ACcGV63euAfRyUgSzPFYjSpTGwNUUMp9dmA1ZWiaPfZrTzS03WeeJePR+lf5oeP8lmgR8XXQsTnBlw== X-Received: by 2002:a17:906:90f:: with SMTP id i15-v6mr27111939ejd.225.1539084035573; Tue, 09 Oct 2018 04:20:35 -0700 (PDT) Received: from prevas-ravi.vestasvisitor.net ([193.47.71.171]) by smtp.gmail.com with ESMTPSA id n23-v6sm3595821eja.41.2018.10.09.04.20.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Oct 2018 04:20:35 -0700 (PDT) From: Rasmus Villemoes To: Jason Baron , Andrew Morton Cc: linux-kernel@vger.kernel.org, Rasmus Villemoes , linux-acpi@vger.kernel.org Subject: [PATCH v2 15/23] ACPI: use proper DYNAMIC_DEBUG_BRANCH macro Date: Tue, 9 Oct 2018 13:20:05 +0200 Message-Id: <20181009112013.14238-16-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.19.1.4.g721af0fda3 In-Reply-To: <20181009112013.14238-1-linux@rasmusvillemoes.dk> References: <20180919220444.23190-1-linux@rasmusvillemoes.dk> <20181009112013.14238-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 Signed-off-by: Rasmus Villemoes Acked-by: Rafael J. Wysocki --- 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 de8d3d3fa651..21e03aa32aae 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -982,7 +982,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)