From patchwork Thu Dec 3 04:07:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 57594 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3272369lbb; Wed, 2 Dec 2015 20:09:06 -0800 (PST) X-Received: by 10.66.234.226 with SMTP id uh2mr9997106pac.6.1449115745654; Wed, 02 Dec 2015 20:09:05 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sq8si9154944pab.10.2015.12.02.20.09.05; Wed, 02 Dec 2015 20:09:05 -0800 (PST) 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; 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758246AbbLCEIT (ORCPT + 28 others); Wed, 2 Dec 2015 23:08:19 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:36582 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757419AbbLCEII (ORCPT ); Wed, 2 Dec 2015 23:08:08 -0500 Received: by pacdm15 with SMTP id dm15so59267214pac.3 for ; Wed, 02 Dec 2015 20:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=nwn3n/jUElN6uHNTVJmbHlNIEimD6XnWPUJ9vLa0gzA=; b=SY0bVoUr/bTAiAqQLI26kfBFEb2mkkjDUStxeU+94084q04DMFQB/qE/rR5FRfdVrj GiifvPahFOPAdK9OWdHdpyN8kE8WQfPWovckDEhB4P0EF61NepL4rwuyjJYFZUERALWB duz7c+XwVKiSstOo/cP+DQOVGnQ5ja9bCB9w/ljjd0DMZlYJJkyOLOe4Ad8t4GKzF7VG XStMLgcn3jH/xuG3bHhOcOx5tymUtzMWxFqMo1AWel7s0uBQf2Tr109TqRHZQidPob7C G544iYfL3fAVMol6VcutBXqvBFes9cGUkwH+JPo97nm9Zjh5MyshTBe3FbODltG5qo+i /57A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=nwn3n/jUElN6uHNTVJmbHlNIEimD6XnWPUJ9vLa0gzA=; b=YWPhzKiokYMTrPR+VNQY88dOUWtgelm6QMhmBUQUpQUSF8FttqXeqxXLqPgcYGE+2W wcJuJgDI6y2ADlyNQAhscbD2Rjn/r5IPaoO1WJH+C3m42uygixArK7KcCs+0jV4zig+V 4vq92E6k1djCNGWdZmLpAJgnTvBqGcTyVp1ljk3of6hpk5n9p/sSDjILs/T0k0WOesYg gcLEiDBo0rMTg825S0OFi8rWyRjSxZwjddVrBbCthioYbsqeAaKYojc+gslE/DLV2S1J Ovv23PC7lESSimY5wyZdPR47KA7cDWwGNU1NsJMbMj+X7yT5p6ZCDo/dpA3+T58ZNDQS vnMQ== X-Gm-Message-State: ALoCoQkSf6KHkDSMwit/GhPRglOm7bckMLsQ/AGHJ2McYWffzGxTc1eqOURY6LeZKcKo0Shgivn3 X-Received: by 10.67.6.1 with SMTP id cq1mr10042622pad.78.1449115688107; Wed, 02 Dec 2015 20:08:08 -0800 (PST) Received: from localhost ([122.172.170.156]) by smtp.gmail.com with ESMTPSA id r20sm7208924pfa.93.2015.12.02.20.08.07 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 02 Dec 2015 20:08:07 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, ashwin.chaugule@linaro.org, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH V2 2/6] cpufreq: ondemand: Work is guaranteed to be pending Date: Thu, 3 Dec 2015 09:37:50 +0530 Message-Id: <62e9df1d973c51ae5abd64e1667a261616a4ad87.1449115453.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.6.2.198.g614a2ac In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are guaranteed to have works scheduled for policy->cpus, as the policy isn't stopped yet. And so there is no need to check that again. Drop it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_ondemand.c | 3 --- 1 file changed, 3 deletions(-) -- 2.6.2.198.g614a2ac -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 089ca6a6ca02..08f2aa602f9e 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -286,9 +286,6 @@ static void update_sampling_rate(struct dbs_data *dbs_data, if (dbs_data != policy->governor_data) continue; - if (!delayed_work_pending(&dbs_info->cdbs.dwork)) - continue; - next_sampling = jiffies + usecs_to_jiffies(new_rate); appointed_at = dbs_info->cdbs.dwork.timer.expires;