From patchwork Sat Jun 27 03:02:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 50388 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 ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 83724228FD for ; Sat, 27 Jun 2015 03:03:07 +0000 (UTC) Received: by lagx9 with SMTP id x9sf4969401lag.2 for ; Fri, 26 Jun 2015 20:03:06 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=1XiLCKTJvfhy3bMXNpcsFiV50k/lBzPnHB3i4jYzNec=; b=Ve0hcwgjIFdwnVShdyinrDbhI3VVrrzX+NEowv7Kb3ZABJvwpZjYhL8Kg6BxR4N/8m EJ1VgyhT9A8afJ2nfTHO2+UlSrgmFsD823ph3tx+t1jgqOZDYqlW843BqIwIm7vDbuiS sZOiq2Lbj2MCrttu2WcYs5pJIXof96hqeKg7j1jVnt+2hU2z4UlIuZdneFTjmPh/11tv m8bFFXCd8S0T1hL1DVorrVO8/fiOt3BX5BeQQoQUrpEd7zzhScaoY15bZ1BE1t2uHFMI 2+75AaCUamc5Qe/p2/0hXszSbbj9fXa/KENfoT3RBAhIitqD9MeRytGpo+t8EyrXz0Hw Kbcw== X-Gm-Message-State: ALoCoQkL0mhBT5+/pGO5UEIqVDx4L2lRp8j6bd2L+Ti9kvo5nZtxT2KPHA09GBz2bagxlfTbUj6o X-Received: by 10.112.26.5 with SMTP id h5mr3264769lbg.4.1435374186380; Fri, 26 Jun 2015 20:03:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.134 with SMTP id c6ls245985lag.54.gmail; Fri, 26 Jun 2015 20:03:06 -0700 (PDT) X-Received: by 10.152.6.69 with SMTP id y5mr4302689lay.72.1435374185975; Fri, 26 Jun 2015 20:03:05 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id o5si28959313lao.159.2015.06.26.20.03.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jun 2015 20:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lacny3 with SMTP id ny3so74384294lac.3 for ; Fri, 26 Jun 2015 20:03:05 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr4281021lbb.29.1435374185435; Fri, 26 Jun 2015 20:03:05 -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.108.230 with SMTP id hn6csp295184lbb; Fri, 26 Jun 2015 20:03:04 -0700 (PDT) X-Received: by 10.66.65.138 with SMTP id x10mr9110474pas.97.1435374175446; Fri, 26 Jun 2015 20:02:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si51225212pat.122.2015.06.26.20.02.54; Fri, 26 Jun 2015 20:02:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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 S1751797AbbF0DCx (ORCPT + 11 others); Fri, 26 Jun 2015 23:02:53 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:33604 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbbF0DCw (ORCPT ); Fri, 26 Jun 2015 23:02:52 -0400 Received: by pdjn11 with SMTP id n11so84890608pdj.0 for ; Fri, 26 Jun 2015 20:02:52 -0700 (PDT) X-Received: by 10.70.41.78 with SMTP id d14mr9386854pdl.35.1435374171986; Fri, 26 Jun 2015 20:02:51 -0700 (PDT) Received: from ubuntu.localdomain (c-24-8-37-141.hsd1.co.comcast.net. [24.8.37.141]) by mx.google.com with ESMTPSA id j7sm34787756pdp.83.2015.06.26.20.02.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jun 2015 20:02:51 -0700 (PDT) From: Lina Iyer To: rjw@rjwysocki.net, ulf.hansson@linaro.org, khilman@linaro.org Cc: geert@linux-m68k.org, k.kozlowski@samsung.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, msivasub@codeaurora.org, agross@codeaurora.org, Lina Iyer Subject: [PATCH RFC v2 05/16] arm: domain: Remove hack to add dev->driver. Date: Fri, 26 Jun 2015 21:02:25 -0600 Message-Id: <1435374156-19214-6-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435374156-19214-1-git-send-email-lina.iyer@linaro.org> References: <1435374156-19214-1-git-send-email-lina.iyer@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lina.iyer@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.43 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: , Fixed in Generic PM domains framework. Signed-off-by: Lina Iyer --- arch/arm/kernel/domains.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/arch/arm/kernel/domains.c b/arch/arm/kernel/domains.c index 8388f54..3248409 100644 --- a/arch/arm/kernel/domains.c +++ b/arch/arm/kernel/domains.c @@ -48,26 +48,6 @@ static int arm_domain_cpu_init(void) return -ENODEV; } - /* - * HACK: genpd checks if devices are runtime_suspended - * before doing a poweroff of the domain. However, that check - * assumes that that device has a driver. Since CPU devices don't - * have a driver, genpd assumes that the device is runtime_suspended - * and will power off the domain as soon as the any device - * in the domain does a runtime_suspend. - * - * c.f. the following code in pm_genpd_poweroff(): - * - * if (pdd->dev->driver && (!pm_runtime_suspended(pdd->dev) - * || pdd->dev->power.irq_safe)) - * not_suspended++; - * - * Just removing the pdd->dev->driver check would also work, - * but not sure if that's right in the general case. - */ - cpu_dev->driver = kzalloc(sizeof(struct device_driver), GFP_KERNEL); - WARN_ON(!cpu_dev->driver); - if (cpu_online(cpuid)) { pm_runtime_set_active(cpu_dev); pm_runtime_get_noresume(cpu_dev);