Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1383922
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular |
| Date | 2016-04-21 10:10 +0200 |
| Message-ID | <rqhQu-61u-23@gated-at.bofh.it> (permalink) |
| References | <rllrK-6RI-47@gated-at.bofh.it> <rq2eK-1vN-15@gated-at.bofh.it> <rq4Tg-3DS-5@gated-at.bofh.it> <rqdjQ-27E-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Apr 20, 2016 at 11:12:49PM -0400, Paul Gortmaker wrote:
[ ... ]
> > > We replace module.h with moduleparam.h since the file does declare
> > > some module parameters, and leaving them as such is currently the
> > > easiest way to remain compatible with existing boot arg use cases.
> >
> > What about using __setup() ? so module* disappear from the file.
>
> No, it can't be __setup since moduleparam uses an instance of the
> filename as a prefix to the boot arg, and __setup does not. And we
> should stay compatible with existing boot arg use cases for people
> who have embedded such a setting in their grub config a long time
> ago and forgot it. It would take looking at and likely extending the
> early_param macro to provide a syntax compatible instance of what
> the module_param currently does if I recall correctly -- hence the
> above comment in the commit log.
-module_param(max_cstate, int, 0444);
+static int __init max_cstate_param(char *str)
+{
+ max_cstate = simple_strtol(str, NULL, 0);
+ return 1;
+}
+__setup("intel_idle.max_cstate=", max_cstate_param);
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-04-20 17:30 +0200
Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-20 20:20 +0200
Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-04-21 05:20 +0200
Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-21 10:10 +0200
Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-04-21 14:50 +0200
Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-04-21 15:30 +0200
Re: [PATCH v2] drivers/idle: make intel_idle.c driver more explicitly non-modular Paul Gortmaker <paul.gortmaker@windriver.com> - 2016-04-21 19:50 +0200
csiph-web