Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] power: qos: Export pm_qos_update_request_timeout()
@ 2017-12-05 10:45 Hareesh Gundu
  2017-12-05 15:24 ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Hareesh Gundu @ 2017-12-05 10:45 UTC (permalink / raw)
  To: Rafael J. Wysocki, Pavel Machek, linux-pm; +Cc: hareeshg

Add EXPORT_SYMBOL_GPL to pm_qos_update_request_timeout,
so that it can be usable from modules similar to the
pm_qos_update_request().

Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
---
 kernel/power/qos.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/power/qos.c b/kernel/power/qos.c
index 9d75039..3f501b4 100644
--- a/kernel/power/qos.c
+++ b/kernel/power/qos.c
@@ -515,6 +515,7 @@ void pm_qos_update_request_timeout(struct pm_qos_request *req, s32 new_value,
 
 	schedule_delayed_work(&req->work, usecs_to_jiffies(timeout_us));
 }
+EXPORT_SYMBOL_GPL(pm_qos_update_request_timeout);
 
 /**
  * pm_qos_remove_request - modifies an existing qos request
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] power: qos: Export pm_qos_update_request_timeout()
  2017-12-05 10:45 [PATCH] power: qos: Export pm_qos_update_request_timeout() Hareesh Gundu
@ 2017-12-05 15:24 ` Rafael J. Wysocki
  2017-12-06 15:35   ` Hareesh Gundu
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael J. Wysocki @ 2017-12-05 15:24 UTC (permalink / raw)
  To: Hareesh Gundu; +Cc: Rafael J. Wysocki, Pavel Machek, Linux PM

On Tue, Dec 5, 2017 at 11:45 AM, Hareesh Gundu <hareeshg@codeaurora.org> wrote:
> Add EXPORT_SYMBOL_GPL to pm_qos_update_request_timeout,
> so that it can be usable from modules similar to the
> pm_qos_update_request().
>
> Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>

I'd rather see a modular user of this along with the export.

> ---
>  kernel/power/qos.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/kernel/power/qos.c b/kernel/power/qos.c
> index 9d75039..3f501b4 100644
> --- a/kernel/power/qos.c
> +++ b/kernel/power/qos.c
> @@ -515,6 +515,7 @@ void pm_qos_update_request_timeout(struct pm_qos_request *req, s32 new_value,
>
>         schedule_delayed_work(&req->work, usecs_to_jiffies(timeout_us));
>  }
> +EXPORT_SYMBOL_GPL(pm_qos_update_request_timeout);
>
>  /**
>   * pm_qos_remove_request - modifies an existing qos request
> --
> 1.9.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] power: qos: Export pm_qos_update_request_timeout()
  2017-12-05 15:24 ` Rafael J. Wysocki
@ 2017-12-06 15:35   ` Hareesh Gundu
  2017-12-06 16:43     ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Hareesh Gundu @ 2017-12-06 15:35 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Rafael J. Wysocki, Pavel Machek, jcrouse, hareeshg, Linux PM


On 12/5/2017 8:54 PM, Rafael J. Wysocki wrote:
> On Tue, Dec 5, 2017 at 11:45 AM, Hareesh Gundu <hareeshg@codeaurora.org> wrote:
>> Add EXPORT_SYMBOL_GPL to pm_qos_update_request_timeout,
>> so that it can be usable from modules similar to the
>> pm_qos_update_request().
>>
>> Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
There is no in-tree kernel module using it. It's required for modules 
built out-tree kernel.
Does it really required show out tree kernel module uses this symbol ?
> I'd rather see a modular user of this along with the export.
>
>> ---
>>   kernel/power/qos.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/kernel/power/qos.c b/kernel/power/qos.c
>> index 9d75039..3f501b4 100644
>> --- a/kernel/power/qos.c
>> +++ b/kernel/power/qos.c
>> @@ -515,6 +515,7 @@ void pm_qos_update_request_timeout(struct pm_qos_request *req, s32 new_value,
>>
>>          schedule_delayed_work(&req->work, usecs_to_jiffies(timeout_us));
>>   }
>> +EXPORT_SYMBOL_GPL(pm_qos_update_request_timeout);
>>
>>   /**
>>    * pm_qos_remove_request - modifies an existing qos request
>> --
>> 1.9.1
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] power: qos: Export pm_qos_update_request_timeout()
  2017-12-06 15:35   ` Hareesh Gundu
@ 2017-12-06 16:43     ` Rafael J. Wysocki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2017-12-06 16:43 UTC (permalink / raw)
  To: Hareesh Gundu
  Cc: Rafael J. Wysocki, Rafael J. Wysocki, Pavel Machek, jcrouse,
	Linux PM, Greg Kroah-Hartman

On Wed, Dec 6, 2017 at 4:35 PM, Hareesh Gundu <hareeshg@codeaurora.org> wrote:
>
> On 12/5/2017 8:54 PM, Rafael J. Wysocki wrote:
>>
>> On Tue, Dec 5, 2017 at 11:45 AM, Hareesh Gundu <hareeshg@codeaurora.org>
>> wrote:
>>>
>>> Add EXPORT_SYMBOL_GPL to pm_qos_update_request_timeout,
>>> so that it can be usable from modules similar to the
>>> pm_qos_update_request().
>>>
>>> Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
>
> There is no in-tree kernel module using it. It's required for modules built
> out-tree kernel.
> Does it really required show out tree kernel module uses this symbol ?

If the module is out of the tree, the patch can be out of the tree
too, unless there is a very good reason for it to be in the tree.

So, what is that reason?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-06 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 10:45 [PATCH] power: qos: Export pm_qos_update_request_timeout() Hareesh Gundu
2017-12-05 15:24 ` Rafael J. Wysocki
2017-12-06 15:35   ` Hareesh Gundu
2017-12-06 16:43     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox