From patchwork Thu Oct 29 12:27:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 55758 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp529707lbr; Thu, 29 Oct 2015 05:27:48 -0700 (PDT) X-Received: by 10.50.43.225 with SMTP id z1mr9060051igl.19.1446121668237; Thu, 29 Oct 2015 05:27:48 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si2835087ioc.95.2015.10.29.05.27.47; Thu, 29 Oct 2015 05:27:48 -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; 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 S1756798AbbJ2M1n (ORCPT + 28 others); Thu, 29 Oct 2015 08:27:43 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34181 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751700AbbJ2M1i (ORCPT ); Thu, 29 Oct 2015 08:27:38 -0400 Received: by padhk11 with SMTP id hk11so40005286pad.1 for ; Thu, 29 Oct 2015 05:27:37 -0700 (PDT) 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=NR9EOmSSAW3M4sypeieFszFp2XNRqpHM3vZV0EDJqkE=; b=GloH4O9M/rBhREMrvy6bdz7eZGJ4/gQAf4QY9mKdK4mr/UCTJWehMAQwyaW8wc1U2U 6pxKm5GVfUuuqjVHtfd73mg/wdwJEKD/inER3afBKFwc90mI15lZdl55nQhyZgeS0vat hDgLN4AGEUjYjYeDNXMhtLVeCfTteMuWPsxOoBDH+RQAY70LlAKTWIZbtiVD8iM61htt EVtrHRepZkKQhSrJ0xeZkFK6JrP7FPFiTJin7Cbzu68zVb7791d91IY+Xs0P6jR068wB W1mETfW40VnQ0+Jj+q9sX8LRpE8ePlIzxgteCAIxIOx0+ObLbsqxxGCgLQFX933pUzkx rdag== 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=NR9EOmSSAW3M4sypeieFszFp2XNRqpHM3vZV0EDJqkE=; b=BDybbiSW3lBrzXz3e3freDBFZ7FOuVo5F1AIRAwgWDiAIg4OC9oSRHyoa81rucW/jM +cIEyegtlnaIRstVt8GRRYfyZ8cS22qsI5tnypahJbe4a4mZSeSc5FOubN/Oqg/TFMpZ Du7+whdUnGqRZXr7t+vCPbB7N09U/TzZ5VvYGYLC1VrPLx2VaAFXQy3mf73mB+ZFnAyl JuFFijLia3PkZM6ihQ3FkkY/VPv/xu0P/70pYta/YVa0CDDsko64OTNE5BL8ftBDnLM0 nnV8BgOCo8V+LX9LaWqbrRhOgyXb/olXDMcc+fSBjSQQoYDwaFC4ECDxfczpsTmtLqar izVQ== X-Gm-Message-State: ALoCoQkbVt+IfavXRh5oJ8XbILH/hW+LNwqbW7HRzVflto1sXGwMAGmOjSTyFRAHxRZkg4Cb7F9X X-Received: by 10.69.1.9 with SMTP id bc9mr857039pbd.128.1446121657707; Thu, 29 Oct 2015 05:27:37 -0700 (PDT) Received: from localhost ([122.172.111.169]) by smtp.gmail.com with ESMTPSA id ho3sm2228765pbb.18.2015.10.29.05.27.36 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 29 Oct 2015 05:27:37 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/6] cpufreq: ondemand: Work is guaranteed to be pending Date: Thu, 29 Oct 2015 17:57:21 +0530 Message-Id: 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 0800a937607b..edab71528b8b 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -285,9 +285,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;