Message ID | 1426018502-16010-1-git-send-email-michael.scott@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCSYVMGPZANRBANC7WTQKGQE5HFLOLI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 75EF4214C2 for <linaro@patches.linaro.org>; Tue, 10 Mar 2015 20:16:02 +0000 (UTC) Received: by lbvp9 with SMTP id p9sf3289508lbv.0 for <linaro@patches.linaro.org>; Tue, 10 Mar 2015 13:16:01 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=RSE2JXaIvjuI3blbFonVWBFqYHQd0fcNs1Y4/5IoBg0=; b=eYlwEyTGx+sHOtbm5KdYZbhG4kzHEyqvirZwtGVLFM6z7+/t8bWUpngS61EUbLrHes j5R+d/eg3k8ZxKwmgHZblGHzNjSx3VCP+MoWHhdfRPefz0Gpb3N5I57UTjEKZO0RSGfH d1Zn6NV5DkTg1YuGW1pyTEyKu7cEUwl1FlERt9wLmDtkBFhfCjKg/dR7EKiH0AFWaFkB ikVbyDBQWfGODAyVDpzag18CFlvTj1CT2/zfT/mE0Is9ntNn0xUtoZzMfWXatkOiwK7r qGGO2o6aQjoGOOW6CZXTi8e47K1oy/3s/ZSuAafo3bS2FCOUara8ZZTaqqSodzCK/WP7 E3Yw== X-Gm-Message-State: ALoCoQnzGes9GocONAYD+xAIumV3+zg158JuxH1t3pNR08mk68Adxl+kHmYPWfkJMe5eIWMXDc/p X-Received: by 10.181.29.66 with SMTP id ju2mr8148651wid.1.1426018561404; Tue, 10 Mar 2015 13:16:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.2 with SMTP id ky2ls74613lab.107.gmail; Tue, 10 Mar 2015 13:16:01 -0700 (PDT) X-Received: by 10.112.134.106 with SMTP id pj10mr32719704lbb.58.1426018561212; Tue, 10 Mar 2015 13:16:01 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id lm12si957396lac.175.2015.03.10.13.16.01 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Mar 2015 13:16:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labgm9 with SMTP id gm9so4298727lab.11 for <patchwork-forward@linaro.org>; Tue, 10 Mar 2015 13:16:01 -0700 (PDT) X-Received: by 10.152.5.194 with SMTP id u2mr32024424lau.88.1426018560973; Tue, 10 Mar 2015 13:16:00 -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.35.133 with SMTP id h5csp2360043lbj; Tue, 10 Mar 2015 13:16:00 -0700 (PDT) X-Received: by 10.70.102.101 with SMTP id fn5mr47393494pdb.131.1426018559182; Tue, 10 Mar 2015 13:15:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gg3si2920505pac.82.2015.03.10.13.15.57; Tue, 10 Mar 2015 13:15:59 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753201AbbCJUPx (ORCPT <rfc822;ivan.khoronzhuk@linaro.org> + 28 others); Tue, 10 Mar 2015 16:15:53 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:38343 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753003AbbCJUPu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 10 Mar 2015 16:15:50 -0400 Received: by obcuz6 with SMTP id uz6so4373515obc.5 for <linux-kernel@vger.kernel.org>; Tue, 10 Mar 2015 13:15:49 -0700 (PDT) X-Received: by 10.182.20.195 with SMTP id p3mr26922027obe.1.1426018549593; Tue, 10 Mar 2015 13:15:49 -0700 (PDT) Received: from localhost.localdomain (172-2-231-169.lightspeed.irvnca.sbcglobal.net. [172.2.231.169]) by mx.google.com with ESMTPSA id g3sm984403obx.25.2015.03.10.13.15.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Mar 2015 13:15:49 -0700 (PDT) From: Michael Scott <michael.scott@linaro.org> To: pavel@ucw.cz, rjw@sisk.pl, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-stable@vger.kernel.org, linux-pm@vger.kernel.org, Michael Scott <michael.scott@linaro.org> Subject: [PATCH v3.10-stable] PM / QoS: remove duplicate call to pm_qos_update_target Date: Tue, 10 Mar 2015 13:15:02 -0700 Message-Id: <1426018502-16010-1-git-send-email-michael.scott@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: michael.scott@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.215.47 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 25cf89b..8703fc7 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c @@ -369,12 +369,6 @@ void pm_qos_update_request(struct pm_qos_request *req, } cancel_delayed_work_sync(&req->work); - - if (new_value != req->node.prio) - pm_qos_update_target( - pm_qos_array[req->pm_qos_class]->constraints, - &req->node, PM_QOS_UPDATE_REQ, new_value); - __pm_qos_update_request(req, new_value); } EXPORT_SYMBOL_GPL(pm_qos_update_request);
In 3.10.y backport patch 1dba303727f52ea062580b0a9b3f0c3b462769cf, the logic to call pm_qos_update_target was moved to __pm_qos_update_request. However, the original code was left in function pm_qos_update_request. Currently, if pm_qos_update_request is called where new_value != req->node.prio then pm_qos_update_target will be called twice in a row. Once in pm_qos_update_request and then again in the following call to _pm_qos_update_request. Removing the left over code from pm_qos_update_request stops this second call to pm_qos_update_target where the work of removing / re-adding the new_value in the constraints list would be duplicated. Signed-off-by: Michael Scott <michael.scott@linaro.org> --- kernel/power/qos.c | 6 ------ 1 file changed, 6 deletions(-)