* [PATCH] cpufreq/CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver
@ 2016-10-14 18:00 Prashanth Prakash
2016-11-14 0:21 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Prashanth Prakash @ 2016-10-14 18:00 UTC (permalink / raw)
To: linux-pm
Cc: Rafael J. Wysocki, Hoan Tran, Christopher Covington, Al Stone,
Prashanth Prakash
MODULE_DEVICE_TABLE is added so that CPPC cpufreq module can be
automatically loaded when we have a acpi processor device with
"ACPI0007" hid.
Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org>
---
drivers/cpufreq/cppc_cpufreq.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
index 4852d9e..e82bb3c 100644
--- a/drivers/cpufreq/cppc_cpufreq.c
+++ b/drivers/cpufreq/cppc_cpufreq.c
@@ -247,3 +247,10 @@ MODULE_DESCRIPTION("CPUFreq driver based on the ACPI CPPC v5.0+ spec");
MODULE_LICENSE("GPL");
late_initcall(cppc_cpufreq_init);
+
+static const struct acpi_device_id cppc_acpi_ids[] = {
+ {ACPI_PROCESSOR_DEVICE_HID, },
+ {}
+};
+
+MODULE_DEVICE_TABLE(acpi, cppc_acpi_ids);
--
Qualcomm Datacenter Technologies on behalf of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq/CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver
2016-10-14 18:00 [PATCH] cpufreq/CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver Prashanth Prakash
@ 2016-11-14 0:21 ` Rafael J. Wysocki
2016-11-14 21:16 ` Prakash, Prashanth
0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2016-11-14 0:21 UTC (permalink / raw)
To: Prashanth Prakash; +Cc: linux-pm, Hoan Tran, Christopher Covington, Al Stone
On Friday, October 14, 2016 12:00:23 PM Prashanth Prakash wrote:
> MODULE_DEVICE_TABLE is added so that CPPC cpufreq module can be
> automatically loaded when we have a acpi processor device with
> "ACPI0007" hid.
>
> Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org>
> ---
> drivers/cpufreq/cppc_cpufreq.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
> index 4852d9e..e82bb3c 100644
> --- a/drivers/cpufreq/cppc_cpufreq.c
> +++ b/drivers/cpufreq/cppc_cpufreq.c
> @@ -247,3 +247,10 @@ MODULE_DESCRIPTION("CPUFreq driver based on the ACPI CPPC v5.0+ spec");
> MODULE_LICENSE("GPL");
>
> late_initcall(cppc_cpufreq_init);
> +
> +static const struct acpi_device_id cppc_acpi_ids[] = {
> + {ACPI_PROCESSOR_DEVICE_HID, },
> + {}
> +};
> +
> +MODULE_DEVICE_TABLE(acpi, cppc_acpi_ids);
Applied.
Thanks,
Rafael
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq/CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver
2016-11-14 0:21 ` Rafael J. Wysocki
@ 2016-11-14 21:16 ` Prakash, Prashanth
0 siblings, 0 replies; 3+ messages in thread
From: Prakash, Prashanth @ 2016-11-14 21:16 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: linux-pm, Hoan Tran, Christopher Covington, Al Stone
On 11/13/2016 5:21 PM, Rafael J. Wysocki wrote:
> On Friday, October 14, 2016 12:00:23 PM Prashanth Prakash wrote:
>> MODULE_DEVICE_TABLE is added so that CPPC cpufreq module can be
>> automatically loaded when we have a acpi processor device with
>> "ACPI0007" hid.
>>
>> Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org>
>> ---
>> drivers/cpufreq/cppc_cpufreq.c | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
>> index 4852d9e..e82bb3c 100644
>> --- a/drivers/cpufreq/cppc_cpufreq.c
>> +++ b/drivers/cpufreq/cppc_cpufreq.c
>> @@ -247,3 +247,10 @@ MODULE_DESCRIPTION("CPUFreq driver based on the ACPI CPPC v5.0+ spec");
>> MODULE_LICENSE("GPL");
>>
>> late_initcall(cppc_cpufreq_init);
>> +
>> +static const struct acpi_device_id cppc_acpi_ids[] = {
>> + {ACPI_PROCESSOR_DEVICE_HID, },
>> + {}
>> +};
>> +
>> +MODULE_DEVICE_TABLE(acpi, cppc_acpi_ids);
> Applied.
Thanks Rafael!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-14 21:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 18:00 [PATCH] cpufreq/CPPC: Add MODULE_DEVICE_TABLE for cppc_cpufreq driver Prashanth Prakash
2016-11-14 0:21 ` Rafael J. Wysocki
2016-11-14 21:16 ` Prakash, Prashanth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).