From patchwork Mon Jul 27 12:28:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51515 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id D785522918 for ; Mon, 27 Jul 2015 12:28:58 +0000 (UTC) Received: by lagw2 with SMTP id w2sf27221952lag.3 for ; Mon, 27 Jul 2015 05:28:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Rg1qUXkug8/uzR0Wvz4NYPPEQE+nU93inM6ff92TNDM=; b=GIoo4F+1Y7RSMe9srruosQnp9VLiBCt1jHRj7nUCKxlPLVP91lAuGceGp6ek5soeZ1 MY/jvEIUbMGe0cZebyNlgu+QYvtjqOUAd/fThwpG7WE+9axoYidQVYB0tWPiQ5PzhKci MW9RUziCRb6hsKfuoULnY8Au7sV5uncsznoKV1Y+FV8I3lVHqn3nBpvm1tgQ4D71EJIl 07u371lIGSUv3rK6+1b98G8SclhF/HOO0VN4Qxm0NTojjQHa6QmRX/aLyyV3Ql4X0EGh W+E1QeLWnvQTwhMKPLnG1uW9zmREMlTUNxhazew3xq8MbUNPcn3csJ6DUUrF41STqXqY 1Ayw== X-Gm-Message-State: ALoCoQkyMk2zS4uN9lcN7AFGkfj0aNVFdolw8CvEGJhJclg9uaJ9ycOC/BiWvPrrOrOAhvDqCr70 X-Received: by 10.112.160.39 with SMTP id xh7mr12151387lbb.22.1438000137790; Mon, 27 Jul 2015 05:28:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.146 with SMTP id ay18ls682410lab.20.gmail; Mon, 27 Jul 2015 05:28:57 -0700 (PDT) X-Received: by 10.152.87.205 with SMTP id ba13mr25944342lab.37.1438000137615; Mon, 27 Jul 2015 05:28:57 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id rv3si15104128lbb.151.2015.07.27.05.28.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 05:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lblf12 with SMTP id f12so52258720lbl.2 for ; Mon, 27 Jul 2015 05:28:57 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr26274551lbc.112.1438000137468; Mon, 27 Jul 2015 05:28:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1501945lba; Mon, 27 Jul 2015 05:28:56 -0700 (PDT) X-Received: by 10.70.135.104 with SMTP id pr8mr67296040pdb.129.1438000133396; Mon, 27 Jul 2015 05:28:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si43892713pdj.121.2015.07.27.05.28.52; Mon, 27 Jul 2015 05:28:53 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753440AbbG0M2v (ORCPT + 28 others); Mon, 27 Jul 2015 08:28:51 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:33910 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753305AbbG0M2s (ORCPT ); Mon, 27 Jul 2015 08:28:48 -0400 Received: by pdbbh15 with SMTP id bh15so51504104pdb.1 for ; Mon, 27 Jul 2015 05:28:48 -0700 (PDT) X-Received: by 10.70.43.225 with SMTP id z1mr67392497pdl.45.1438000127991; Mon, 27 Jul 2015 05:28:47 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id qn7sm29479489pab.14.2015.07.27.05.28.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 27 Jul 2015 05:28:47 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, preeti.lkml@gmail.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V2 4/9] cpufreq: governor: Drop __gov_queue_work() Date: Mon, 27 Jul 2015 17:58:09 +0530 Message-Id: <4f7aef4f032e082a5093b91d244647f339ef6558.1437999691.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , __gov_queue_work() isn't required anymore and can be merged with gov_queue_work(). Do it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_governor.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index a890450711bb..3ddc27764e10 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c @@ -158,25 +158,20 @@ void dbs_check_cpu(struct dbs_data *dbs_data, int cpu) } EXPORT_SYMBOL_GPL(dbs_check_cpu); -static inline void __gov_queue_work(int cpu, struct dbs_data *dbs_data, - unsigned int delay) -{ - struct cpu_dbs_info *cdbs = dbs_data->cdata->get_cpu_cdbs(cpu); - - mod_delayed_work_on(cpu, system_wq, &cdbs->dwork, delay); -} - void gov_queue_work(struct dbs_data *dbs_data, struct cpufreq_policy *policy, unsigned int delay, const struct cpumask *cpus) { - int i; + struct cpu_dbs_info *cdbs; + int cpu; mutex_lock(&cpufreq_governor_lock); if (!policy->governor_enabled) goto out_unlock; - for_each_cpu(i, cpus) - __gov_queue_work(i, dbs_data, delay); + for_each_cpu(cpu, cpus) { + cdbs = dbs_data->cdata->get_cpu_cdbs(cpu); + mod_delayed_work_on(cpu, system_wq, &cdbs->dwork, delay); + } out_unlock: mutex_unlock(&cpufreq_governor_lock);