From patchwork Sat Oct 8 19:52:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 613483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4371AC433F5 for ; Sat, 8 Oct 2022 19:52:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbiJHTwa (ORCPT ); Sat, 8 Oct 2022 15:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiJHTw3 (ORCPT ); Sat, 8 Oct 2022 15:52:29 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0302362E0; Sat, 8 Oct 2022 12:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665258748; x=1696794748; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=x0t3mgqFmD0TBYTipEEEJTaiO743Vf6OovrpWoPE5XA=; b=PcGycwpMSsQNFHUceMYjuDD4xo9yrCklNdO8waYCCQh9j53jmgiULIM8 Z9oUIwb2UZzqOwX4s/cdFWoKY5RuXeKDmPuX9bKcSj0hJFPrLBju4qqUr B/pQVhvgUowXj1O5Evn6UXjBl/mlRaVhsFZTNNeDiTZFxbX/IMmHg5kRN BEbenUvt+1XJZgq6oZyp3Zv+a90y3Vdx5+2zuDhDB56Be0wcYZiVKSdIJ 83mCmRW1Cr/pv4hrL9ipSm6nsaKjZNzisaNOsVM0830qTRUTI0rmGtY6h FHDeFl33a0eqCUnVEo/GZndl8xM2gb6b/zd80d7TMVlz0ohYNxrobvCCT A==; X-IronPort-AV: E=McAfee;i="6500,9779,10494"; a="302703669" X-IronPort-AV: E=Sophos;i="5.95,170,1661842800"; d="scan'208";a="302703669" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2022 12:52:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10494"; a="658721264" X-IronPort-AV: E=Sophos;i="5.95,170,1661842800"; d="scan'208";a="658721264" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 08 Oct 2022 12:52:26 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id CF2E5D0; Sat, 8 Oct 2022 22:52:45 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Viresh Kumar Subject: [PATCH v1 1/1] cpufreq: ACPI: Use str_enabled_disabled() helper Date: Sat, 8 Oct 2022 22:52:44 +0300 Message-Id: <20221008195244.53813-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use str_enabled_disabled() helper instead of open coding the same. Signed-off-by: Andy Shevchenko --- drivers/cpufreq/acpi-cpufreq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 1bb2b90ebb21..8597ab0a84b5 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -135,8 +136,8 @@ static int set_boost(struct cpufreq_policy *policy, int val) { on_each_cpu_mask(policy->cpus, boost_set_msr_each, (void *)(long)val, 1); - pr_debug("CPU %*pbl: Core Boosting %sabled.\n", - cpumask_pr_args(policy->cpus), val ? "en" : "dis"); + pr_debug("CPU %*pbl: Core Boosting %s.\n", + cpumask_pr_args(policy->cpus), str_enabled_disabled(val)); return 0; }