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: 6684571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 84389C05AC for ; Sat, 27 Jun 2015 03:07:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA0CD20561 for ; Sat, 27 Jun 2015 03:07:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C875020553 for ; Sat, 27 Jun 2015 03:07:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z8gQ0-0007LY-BX; Sat, 27 Jun 2015 03:04:36 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z8gOf-0006vV-J2 for linux-arm-kernel@lists.infradead.org; Sat, 27 Jun 2015 03:03:14 +0000 Received: by pdjn11 with SMTP id n11so84890609pdj.0 for ; Fri, 26 Jun 2015 20:02:52 -0700 (PDT) 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; bh=S505zrpP3n4pEM+eN439IuORkazWDhuTIrreQd7AFL4=; b=B4dhEKJMYLn5IWgFVmC8rmqHCSCUgD+CBc/xdXrDzYQ/S/jBWx0cA8uGlRvN2TOL6X 4UaCRUom1tQfghRDleFyqyV4aa5/BLuIPK7CWx8xo011D0cXajQqEUA30WqM8VhfwwI5 7nOCxFc6SrW26wRdx2IUyc3zzvhuM7l1BwjjMadBToWL3AR0IgKqsMiv37i1t6n8lDXH 0UVbNLEk+qPjjHri3wBIJsjk+lBLj5GhTgD3umypWiVG37mFvalqgP1g/TVBE2zYAim4 qKIqH26+hsJ+d1P1vuJgPGVcEw8Rq0siVme4TuwYbua7/94fvQvLpazuXDKTgHR7tSfx ZdWA== X-Gm-Message-State: ALoCoQmjpfwca9P9siH6ZKcmMzah20waj5uyOzFLZAVxIXSbDzX3lMeWd5ZMIjMYYqxonKaWOBOe 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150626_200313_725300_F3E98F7B X-CRM114-Status: GOOD ( 12.63 ) X-Spam-Score: -2.6 (--) Cc: k.kozlowski@samsung.com, linux-pm@vger.kernel.org, msivasub@codeaurora.org, geert@linux-m68k.org, Lina Iyer , agross@codeaurora.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);