From patchwork Tue Sep 26 00:05:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 114207 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3202504qgf; Mon, 25 Sep 2017 17:05:38 -0700 (PDT) X-Received: by 10.101.82.69 with SMTP id q5mr9304331pgp.140.1506384338160; Mon, 25 Sep 2017 17:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506384338; cv=none; d=google.com; s=arc-20160816; b=cYrGImK/+74THyqTQ0d1wK27QzHFv0AQ7APtI17aNYpGaBGsbuL15Rxe4LJPrqjodY yHp/kzZW5MjZSoGviyT4sy9H+Rk921enJfojlEtmVOsNb/H9nN5gdJWgQcpNxJX6Sguv Gl2QJMkVy/MZDH2Bt8vnNW0PgJ/UR8oWnqBpnN7fB8WWCOjzNYeMfkdb77fujSRjt4jX Fj639nHuaHEfji6woZMEJna6eMEN+NoD9tFZwYsZySenUvm5pTMzN6Zgfs6FE1oy1o0+ uSUs7amCMP6yP8FB8TtY2vkCQ4f4v0Y62w+dtVwndxGQ55hhqBqkzowOxZkuccfWWiLF 6gnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=D1miqLD7zjZBs/DxvK1V9OKmnop2SpVnrioi/1aezqA=; b=e1xCCTganrr7RjgxMu9CVssUIzLECcHUsogs33xBycDSvr+vAox8JZQ+eaWBANKlwo 2mgaolHeS89d/Ol7YOXWKZsDoqKzB9KTSv6J15sL1jmp+seX5Byoc2292XLRltuFOUYX Xmle/jIuLxkr1fxuQ9GujL/6mDsOrHQSdzUKZSFOCZxXnJ7fb8GzSVYGf8txpeoy2JpY ygLrV/ss88NCvHSbmO2JBi/kkJn8N5TT/ZZ1dg8Nd67VDlxTEhyQNkXOTQX1keA5tsey Gs8UJxV+fRQ/12AxoyThu06BbwI9Iu8eIKVLpY1vU2mtQD7jrfDEb7Ptv3NqyxrvHuJO AQHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FtMEyPgI; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13si4903790pll.96.2017.09.25.17.05.37; Mon, 25 Sep 2017 17:05:38 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FtMEyPgI; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966656AbdIZAFg (ORCPT + 12 others); Mon, 25 Sep 2017 20:05:36 -0400 Received: from mail-pg0-f50.google.com ([74.125.83.50]:46642 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966655AbdIZAFf (ORCPT ); Mon, 25 Sep 2017 20:05:35 -0400 Received: by mail-pg0-f50.google.com with SMTP id i130so4940040pgc.3 for ; Mon, 25 Sep 2017 17:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=D1miqLD7zjZBs/DxvK1V9OKmnop2SpVnrioi/1aezqA=; b=FtMEyPgIQZ7YiC0tNwACcjgvUifP0vAf7MHigni4a0M2oyTJzlmvCbP2nGGFqbguNz KjJYjKMAAxp5pSY4AJzMplVekP+/vYfgr/S5SCN4Qf3CIIEgiTAJltf821LEMhlE0l+e vUtHTquMpnu1Dta5XKk4nGpBP6Kp4yqA93QFA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=D1miqLD7zjZBs/DxvK1V9OKmnop2SpVnrioi/1aezqA=; b=LjAJnb6yRs+rxMVpRypA8v0hntpUxx8Vv4BIWtosazaAhcgoJePigTIqhb0znHEk9l dFVHzHcWaS7PNvNjEqTGBYsWkRernxlHOq6LVaNJjO1qY++qT1nrBzf+FCXPQY9GMvD3 HzsBdKyZQ5CvZvIkmsc37jlKGet6Q0WHJbsIdHv+xue9mz/jS9r7bt119ol04DJYpwPb 3u1R7f7kYOF68ZZ4xkFoCb0Ahk4gCFuI7FS+GKaIJ9txKPj8TsX/gu2DfLWHp19OXsHV XWpcNlT3grvkRmNNIgKP0ngM9vEh162iyCCZiEMdn7lC/OATd97Qavja8CZLUUD5Zg7i If8A== X-Gm-Message-State: AHPjjUjccMoSYQnjV0uM0kKUOso00BxZH4H+Idv/kWbZ+Xv6zk8kQxDt 4F43dVY5zKmOBxrOy2PCcXPJKQ== X-Google-Smtp-Source: AOwi7QDYwc8dVpHuKLw3fKvFLsoIuh5ydBe/3dVgYjLj94dqu0VbYNQ94wyxJMhQqh+w/1IokXdPYg== X-Received: by 10.98.152.28 with SMTP id q28mr9016517pfd.80.1506384334888; Mon, 25 Sep 2017 17:05:34 -0700 (PDT) Received: from localhost ([70.35.39.2]) by smtp.gmail.com with ESMTPSA id q13sm16955845pfi.110.2017.09.25.17.05.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 17:05:34 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Greg Kroah-Hartman Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Stephen Boyd , Nishanth Menon , linux-kernel@vger.kernel.org Subject: [PATCH] PM / OPP: Move the OPP directory out of power/ Date: Mon, 25 Sep 2017 17:05:24 -0700 Message-Id: <2767b448493ca16f064618d36387ac56dfec0e56.1506384278.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The drivers/base/power/ directory is special and contains code related to power management core like system suspend/resume, hibernation, etc. It was fine to keep the OPP code inside it when we had just one file for it, but it is growing now and already has a directory for itself. Lets move it directly under drivers/ directory, just like cpufreq and cpuidle. Signed-off-by: Viresh Kumar --- drivers/Makefile | 1 + drivers/base/power/Makefile | 1 - drivers/{base/power => }/opp/Makefile | 0 drivers/{base/power => }/opp/core.c | 0 drivers/{base/power => }/opp/cpu.c | 0 drivers/{base/power => }/opp/debugfs.c | 0 drivers/{base/power => }/opp/of.c | 0 drivers/{base/power => }/opp/opp.h | 0 8 files changed, 1 insertion(+), 1 deletion(-) rename drivers/{base/power => }/opp/Makefile (100%) rename drivers/{base/power => }/opp/core.c (100%) rename drivers/{base/power => }/opp/cpu.c (100%) rename drivers/{base/power => }/opp/debugfs.c (100%) rename drivers/{base/power => }/opp/of.c (100%) rename drivers/{base/power => }/opp/opp.h (100%) -- 2.7.4 diff --git a/drivers/Makefile b/drivers/Makefile index d90fdc413648..dd718a3007e9 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -125,6 +125,7 @@ obj-$(CONFIG_ACCESSIBILITY) += accessibility/ obj-$(CONFIG_ISDN) += isdn/ obj-$(CONFIG_EDAC) += edac/ obj-$(CONFIG_EISA) += eisa/ +obj-$(CONFIG_PM_OPP) += opp/ obj-$(CONFIG_CPU_FREQ) += cpufreq/ obj-$(CONFIG_CPU_IDLE) += cpuidle/ obj-y += mmc/ diff --git a/drivers/base/power/Makefile b/drivers/base/power/Makefile index 5998c53280f5..73a1cffc0a5f 100644 --- a/drivers/base/power/Makefile +++ b/drivers/base/power/Makefile @@ -1,7 +1,6 @@ obj-$(CONFIG_PM) += sysfs.o generic_ops.o common.o qos.o runtime.o wakeirq.o obj-$(CONFIG_PM_SLEEP) += main.o wakeup.o obj-$(CONFIG_PM_TRACE_RTC) += trace.o -obj-$(CONFIG_PM_OPP) += opp/ obj-$(CONFIG_PM_GENERIC_DOMAINS) += domain.o domain_governor.o obj-$(CONFIG_HAVE_CLK) += clock_ops.o diff --git a/drivers/base/power/opp/Makefile b/drivers/opp/Makefile similarity index 100% rename from drivers/base/power/opp/Makefile rename to drivers/opp/Makefile diff --git a/drivers/base/power/opp/core.c b/drivers/opp/core.c similarity index 100% rename from drivers/base/power/opp/core.c rename to drivers/opp/core.c diff --git a/drivers/base/power/opp/cpu.c b/drivers/opp/cpu.c similarity index 100% rename from drivers/base/power/opp/cpu.c rename to drivers/opp/cpu.c diff --git a/drivers/base/power/opp/debugfs.c b/drivers/opp/debugfs.c similarity index 100% rename from drivers/base/power/opp/debugfs.c rename to drivers/opp/debugfs.c diff --git a/drivers/base/power/opp/of.c b/drivers/opp/of.c similarity index 100% rename from drivers/base/power/opp/of.c rename to drivers/opp/of.c diff --git a/drivers/base/power/opp/opp.h b/drivers/opp/opp.h similarity index 100% rename from drivers/base/power/opp/opp.h rename to drivers/opp/opp.h