From: Chanwoo Choi <cw00.choi@samsung.com>
To: Paul Gortmaker <paul.gortmaker@windriver.com>,
linux-kernel@vger.kernel.org
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Kukjin Kim <kgene@kernel.org>,
Kyungmin Park <kyungmin.park@samsung.com>,
MyungJoo Ham <myungjoo.ham@samsung.com>,
linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH 0/5] PM / devfreq: remove modular references from non-modules
Date: Tue, 21 Jun 2016 15:17:01 +0900 [thread overview]
Message-ID: <5768DBDD.6030704@samsung.com> (raw)
In-Reply-To: <20160621051501.18396-1-paul.gortmaker@windriver.com>
Hi Paul,
It is good for devfreq/devfreq-event framework(patch1/patch2).
But, I think that the device driver (patch3/4/5) should change
the type from 'bool' to 'tristate' instead of using the .
Thanks,
Chanwoo Choi
On 2016년 06월 21일 14:14, Paul Gortmaker wrote:
> For anyone new to the underlying goal of this cleanup, we are trying to
> not use module support for code that can never be built as a module since:
>
> (1) it is easy to accidentally write unused module_exit and remove code
> (2) it can be misleading when reading the source, thinking it can be
> modular when the Makefile and/or Kconfig prohibit it
> (3) it requires the include of the module.h header file which in turn
> includes nearly everything else, thus adding to CPP overhead.
> (4) it gets copied/replicated into other code and spreads like weeds.
>
> We have already merged over 100 of these for mainline to date, so there
> is really nothing new to see here, in terms of the type of change.
>
> That said, devfreq changes seen here cover the following categories:
>
> -just replacement of modular macros with their non-modular
> equivalents that CPP would have inserted anyway
>
> -the removal of including module.h ; replaced with init.h
> and/or export.h as required based on whether the file used it.
>
> -the removal of any/all unused/orphaned __exit functions that
> would never be called.
>
> -the removal of any ".remove" functions that were hooked into
> the driver struct. This ".remove" function would of
> course not be called from the __exit function since that was
> never run. However in theory, someone could have triggered it
> via sysfs unbind, even though there isn't a sensible use case
> for doing so. So to cover that possibility, we've also disabled
> sysfs unbind in the driver.
>
> There are no initcall level changes here; everything stays at the level
> of initcall it was previously - either by not using modular versions to
> begin with, or by using the builtin level equivalents.
>
> Build tested for arm and arm64 allmodconfig (for which all the drivers
> touched here get coverage) on the linux-next tree from today to ensure
> no silly typos crept in.
>
> If there is a desire for any of these to be modular, we can definitely
> consider that, but by default the changes here keep the code consistent
> with existing behaviour. Thus I do not expand functionality into the
> modular realm that I can't run time test, or even know if the modular
> instance has a sensible modular use case.
>
> Paul.
> ---
>
> Cc: Chanwoo Choi <cw00.choi@samsung.com>
> Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> Cc: Kukjin Kim <kgene@kernel.org>
> Cc: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
> Cc: linux-pm@vger.kernel.org
> Cc: linux-samsung-soc@vger.kernel.org
>
>
> Paul Gortmaker (5):
> PM / devfreq: make devfreq explicitly non-modular
> PM / devfreq: make devfreq-event explicitly non-modular
> PM / devfreq: make exynos-bus explicitly non-modular
> PM / devfreq: make event/exynos-nocp explicitly non-modular
> PM / devfreq: make event/exynos-ppmu explicitly non-modular
>
> drivers/devfreq/devfreq-event.c | 12 +-----------
> drivers/devfreq/devfreq.c | 13 +------------
> drivers/devfreq/event/exynos-nocp.c | 19 +++----------------
> drivers/devfreq/event/exynos-ppmu.c | 8 ++------
> drivers/devfreq/exynos-bus.c | 9 ++-------
> 5 files changed, 9 insertions(+), 52 deletions(-)
>
prev parent reply other threads:[~2016-06-21 6:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20160621051708epcas1p4d2bacb86070cd65ec1fba990e108425e@epcas1p4.samsung.com>
2016-06-21 5:14 ` [PATCH 0/5] PM / devfreq: remove modular references from non-modules Paul Gortmaker
2016-06-21 5:14 ` Paul Gortmaker
2016-06-21 5:14 ` [PATCH 1/5] PM / devfreq: make devfreq explicitly non-modular Paul Gortmaker
2016-06-21 5:14 ` Paul Gortmaker
2016-06-21 5:14 ` [PATCH 2/5] PM / devfreq: make devfreq-event " Paul Gortmaker
2016-06-21 5:14 ` Paul Gortmaker
2016-06-21 5:14 ` [PATCH 3/5] PM / devfreq: make exynos-bus " Paul Gortmaker
2016-06-21 5:14 ` Paul Gortmaker
2016-06-21 5:15 ` [PATCH 4/5] PM / devfreq: make event/exynos-nocp " Paul Gortmaker
2016-06-21 5:15 ` Paul Gortmaker
2016-06-21 5:15 ` [PATCH 5/5] PM / devfreq: make event/exynos-ppmu " Paul Gortmaker
2016-06-21 5:15 ` Paul Gortmaker
2016-06-21 6:17 ` Chanwoo Choi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5768DBDD.6030704@samsung.com \
--to=cw00.choi@samsung.com \
--cc=k.kozlowski@samsung.com \
--cc=kgene@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=paul.gortmaker@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.