Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1334201ybg; Fri, 18 Oct 2019 16:10:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvINXnzx0Fj+kUg6SEwMJFkyc0TgtuwLUSDnUIo64VzQYtGTJ9IAYugJYGvb9XluinsgnK X-Received: by 2002:aa7:cf12:: with SMTP id a18mr12539220edy.278.1571440212104; Fri, 18 Oct 2019 16:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571440212; cv=none; d=google.com; s=arc-20160816; b=PelaOaoxJcNXja9ZBaOpxHyMRnEyY1akpec1ELbWAE4pOpcntdf4msoneAYd33iP8d Bbqg415g1/r9NffHCJw05g8+XJaxQQMRLogJn9Kw9c+eHWddh6JoQp2eiE5HKXF6lDMw tFRuwp2p0MoWHIDhxsRgpZFxN6LVhR6dz0TjJedfB3sqgMR1jQ6F+pEBLy8Tc3sD0Bed 518yJ5HtCUHiFao7dG1+c+hvubFjnv/RlJJCxCSxi5E81UQf3sg3fXZx3iHyrzpteHIz T5g8ObW46dJfaVEJClrB4Vz4ltgGJd3lmWjHeef8xQwYXieRZSLspFqQUwlM+PQmkstC 6lDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yQsGhR9ZGml3wjFEwG0ewcRolEFUUyRHabzESZwufR0=; b=j5pP+8qCnqHMnDGOoy0yWmGfBG5f0/4Z5WIR8qkZILuFWdYwAzhMyMqHWiuKLnY3J4 0D5qpICmUP1sW1sSKQod6L/O8LAXGBQLdd+Zn74OcsHPm9K4GhOpJ5CNJie612ceXzoy vmkaeVtp5h9AtYOfVu4OzMK6APrPFd7pJj+CQ17KT62L4/jSh0NRpXdEfHKnev28JHZ/ SphyU5WeGMtso9KyD9Y02mjwcqHUH/BVWT27dcqaGNTZjOwAs3YKfAFgir3Bns5NghAZ 4HeZQCcIK+/Fvqv6SOfyMwNIQJSUGzDJghix7qdhm6t8fnCqT1NxUtaKHPfOxkZIAJIy 7qKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L3LhpGdf; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si5318863ede.119.2019.10.18.16.09.47; Fri, 18 Oct 2019 16:10:12 -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=@linaro.org header.s=google header.b=L3LhpGdf; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405700AbfJRF5Y (ORCPT + 99 others); Fri, 18 Oct 2019 01:57:24 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37244 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392149AbfJRF5Y (ORCPT ); Fri, 18 Oct 2019 01:57:24 -0400 Received: by mail-pl1-f193.google.com with SMTP id u20so2318607plq.4 for ; Thu, 17 Oct 2019 22:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yQsGhR9ZGml3wjFEwG0ewcRolEFUUyRHabzESZwufR0=; b=L3LhpGdf5pG0gSoA+vMGqs42dgW5Xj0gFs2q1JmiT4zdXa66VUDh3cq0F6whgWX542 aa1L2JPpCuGkqopFEjwrzviWP9iRDxmakcHM66C9gPX9SUjyEFcpN+4VHoy1Kmm827zs oaq/qkpGrL/SLHikRsdpwKmTSMXBlSB7Q7xDspkX70nN5q75CKdJUQ2Iyt0aoDMWxa5J sFBxHg0z07uRza1XeGgG3OD7pPd5C8WIzpPv+Rw/HCd+Fwe30kiCCs4b2ES4iTMB9zcf 3g83yd7uGce12d6YmTM5qcpvHUFIcmMUynW/9hnlKHZPh0bxrJutMczcegOui83MvbyY kmaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yQsGhR9ZGml3wjFEwG0ewcRolEFUUyRHabzESZwufR0=; b=g98215EmzJHAmnc9nYmXFK12wAWhPtD2TAU/uIELXpiUwO6boTAOyGK5Aptgb3ghYO OYa2R4xEJNk/cna37uDfX0QMySq3JEMLS6L59LcOUI7Fii+ZR4GxlGQlmnrTpDRCXbk8 8rNh32oJW3NiIiglnVXnqXjkmW6GfLIy47MJYs9ib2tKqLCF9VDctS9wfKZTdAMtI3Al iQpul4RT5iUuLyerHpy4dZPiWKCgsDS+Iv/MhMIBY8PuVBLHwsBoedMqXoFAskjJfRaX MBiKJX5u0JeQkwLRzSg2QWe2K2oKg+9trtzF03/b5iEosczRFEHNNQ/589ESdRPBwoFn jNvQ== X-Gm-Message-State: APjAAAUHxU02+pKDsDVQJtHgaKZuGwiS0XYMduyRE+Fvh2boK4fSbY/F TE7EoOAUK1eDUtO8KPUQfrF+ig== X-Received: by 2002:a17:902:9896:: with SMTP id s22mr8101703plp.2.1571378243286; Thu, 17 Oct 2019 22:57:23 -0700 (PDT) Received: from localhost ([122.172.151.112]) by smtp.gmail.com with ESMTPSA id r18sm6263453pfc.3.2019.10.17.22.57.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 22:57:22 -0700 (PDT) Date: Fri, 18 Oct 2019 11:27:20 +0530 From: Viresh Kumar To: Sudeep Holla Cc: "Rafael J . Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, nico@fluxnic.net Subject: Re: [PATCH v2 4/5] cpufreq: vexpress-spc: remove lots of debug messages Message-ID: <20191018055720.za3a5zeqdzcupc4h@vireshk-i7> References: <20191017123508.26130-1-sudeep.holla@arm.com> <20191017123508.26130-5-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191017123508.26130-5-sudeep.holla@arm.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17-10-19, 13:35, Sudeep Holla wrote: > This driver have been used and tested for year now and the extensive > debug/log messages in the driver are not really required anymore. > Get rid of those unnecessary log messages. > > Signed-off-by: Sudeep Holla > --- > drivers/cpufreq/vexpress-spc-cpufreq.c | 72 +++++--------------------- > 1 file changed, 13 insertions(+), 59 deletions(-) > > diff --git a/drivers/cpufreq/vexpress-spc-cpufreq.c b/drivers/cpufreq/vexpress-spc-cpufreq.c > static void put_cluster_clk_and_freq_table(struct device *cpu_dev, > @@ -324,11 +296,9 @@ static void put_cluster_clk_and_freq_table(struct device *cpu_dev, > > for_each_present_cpu(i) { > struct device *cdev = get_cpu_device(i); > - if (!cdev) { > - pr_err("%s: failed to get cpu%d device\n", __func__, i); > - return; > - } > > + if (!cdev) > + return; We had a blank line after this, which isn't there in your version anymore. Please keep that here and few more places below. > _put_cluster_clk_and_freq_table(cdev, cpumask); > } > > @@ -354,19 +324,12 @@ static int _get_cluster_clk_and_freq_table(struct device *cpu_dev, > goto out; > > ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table[cluster]); > - if (ret) { > - dev_err(cpu_dev, "%s: failed to init cpufreq table, cpu: %d, err: %d\n", > - __func__, cpu_dev->id, ret); > + if (ret) > goto out; > - } > > clk[cluster] = clk_get(cpu_dev, NULL); > - if (!IS_ERR(clk[cluster])) { > - dev_dbg(cpu_dev, "%s: clk: %p & freq table: %p, cluster: %d\n", > - __func__, clk[cluster], freq_table[cluster], > - cluster); > + if (!IS_ERR(clk[cluster])) > return 0; > - } > > dev_err(cpu_dev, "%s: Failed to get clk for cpu: %d, cluster: %d\n", > __func__, cpu_dev->id, cluster); > @@ -401,11 +364,9 @@ static int get_cluster_clk_and_freq_table(struct device *cpu_dev, > */ > for_each_present_cpu(i) { > struct device *cdev = get_cpu_device(i); > - if (!cdev) { > - pr_err("%s: failed to get cpu%d device\n", __func__, i); > - return -ENODEV; > - } > > + if (!cdev) > + return -ENODEV; > ret = _get_cluster_clk_and_freq_table(cdev, cpumask); > if (ret) > goto put_clusters; > @@ -419,19 +380,14 @@ static int get_cluster_clk_and_freq_table(struct device *cpu_dev, > clk_big_min = get_table_min(freq_table[0]); > clk_little_max = VIRT_FREQ(1, get_table_max(freq_table[1])); > > - pr_debug("%s: cluster: %d, clk_big_min: %d, clk_little_max: %d\n", > - __func__, cluster, clk_big_min, clk_little_max); > - > return 0; > > put_clusters: > for_each_present_cpu(i) { > struct device *cdev = get_cpu_device(i); > - if (!cdev) { > - pr_err("%s: failed to get cpu%d device\n", __func__, i); > - return -ENODEV; > - } > > + if (!cdev) > + return -ENODEV; > _put_cluster_clk_and_freq_table(cdev, cpumask); > } > > @@ -500,8 +456,6 @@ static int ve_spc_cpufreq_exit(struct cpufreq_policy *policy) > } > > put_cluster_clk_and_freq_table(cpu_dev, policy->related_cpus); > - dev_dbg(cpu_dev, "%s: Exited, cpu: %d\n", __func__, policy->cpu); > - > return 0; > } > > -- > 2.17.1 -- viresh