* [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce
@ 2013-07-19 17:47 Mark Brown
2013-07-19 17:47 ` [PATCH 2/2] extcon: adc-jack: Use power efficient workqueue Mark Brown
2013-07-22 4:27 ` [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce Viresh Kumar
0 siblings, 2 replies; 5+ messages in thread
From: Mark Brown @ 2013-07-19 17:47 UTC (permalink / raw)
To: MyungJoo Ham, Chanwoo Choi; +Cc: linux-kernel, linaro-kernel, Mark Brown
From: Mark Brown <broonie@linaro.org>
The debounce timeout is generally quite long and the work not performance
critical so allow the scheduler to run the work anywhere rather than in
the normal per-CPU workqueue.
Signed-off-by: Mark Brown <broonie@linaro.org>
---
drivers/extcon/extcon-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/extcon/extcon-gpio.c b/drivers/extcon/extcon-gpio.c
index 02bec32..f874c30 100644
--- a/drivers/extcon/extcon-gpio.c
+++ b/drivers/extcon/extcon-gpio.c
@@ -56,7 +56,7 @@ static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
{
struct gpio_extcon_data *extcon_data = dev_id;
- schedule_delayed_work(&extcon_data->work,
+ queue_delayed_work(system_power_efficient_wq, &extcon_data->work,
extcon_data->debounce_jiffies);
return IRQ_HANDLED;
}
--
1.8.3.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] extcon: adc-jack: Use power efficient workqueue
2013-07-19 17:47 [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce Mark Brown
@ 2013-07-19 17:47 ` Mark Brown
2013-07-22 4:27 ` Viresh Kumar
2013-07-22 4:27 ` [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce Viresh Kumar
1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2013-07-19 17:47 UTC (permalink / raw)
To: MyungJoo Ham, Chanwoo Choi; +Cc: linux-kernel, linaro-kernel, Mark Brown
From: Mark Brown <broonie@linaro.org>
The debounce timeout is generally quite long and the work not performance
critical so allow the scheduler to run the work anywhere rather than in
the normal per-CPU workqueue.
Signed-off-by: Mark Brown <broonie@linaro.org>
---
drivers/extcon/extcon-adc-jack.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-jack.c
index d0233cd..5985807 100644
--- a/drivers/extcon/extcon-adc-jack.c
+++ b/drivers/extcon/extcon-adc-jack.c
@@ -87,7 +87,8 @@ static irqreturn_t adc_jack_irq_thread(int irq, void *_data)
{
struct adc_jack_data *data = _data;
- schedule_delayed_work(&data->handler, data->handling_delay);
+ queue_delayed_work(system_power_efficient_wq,
+ &data->handler, data->handling_delay);
return IRQ_HANDLED;
}
--
1.8.3.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce
2013-07-19 17:47 [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce Mark Brown
2013-07-19 17:47 ` [PATCH 2/2] extcon: adc-jack: Use power efficient workqueue Mark Brown
@ 2013-07-22 4:27 ` Viresh Kumar
2013-07-24 23:50 ` Chanwoo Choi
1 sibling, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2013-07-22 4:27 UTC (permalink / raw)
To: Mark Brown
Cc: MyungJoo Ham, Chanwoo Choi, linaro-kernel, linux-kernel, Mark Brown
On 19 July 2013 23:17, Mark Brown <broonie@kernel.org> wrote:
> From: Mark Brown <broonie@linaro.org>
>
> The debounce timeout is generally quite long and the work not performance
> critical so allow the scheduler to run the work anywhere rather than in
> the normal per-CPU workqueue.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
> drivers/extcon/extcon-gpio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] extcon: adc-jack: Use power efficient workqueue
2013-07-19 17:47 ` [PATCH 2/2] extcon: adc-jack: Use power efficient workqueue Mark Brown
@ 2013-07-22 4:27 ` Viresh Kumar
0 siblings, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2013-07-22 4:27 UTC (permalink / raw)
To: Mark Brown
Cc: MyungJoo Ham, Chanwoo Choi, linaro-kernel, linux-kernel, Mark Brown
On 19 July 2013 23:17, Mark Brown <broonie@kernel.org> wrote:
> From: Mark Brown <broonie@linaro.org>
>
> The debounce timeout is generally quite long and the work not performance
> critical so allow the scheduler to run the work anywhere rather than in
> the normal per-CPU workqueue.
>
> Signed-off-by: Mark Brown <broonie@linaro.org>
> ---
> drivers/extcon/extcon-adc-jack.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce
2013-07-22 4:27 ` [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce Viresh Kumar
@ 2013-07-24 23:50 ` Chanwoo Choi
0 siblings, 0 replies; 5+ messages in thread
From: Chanwoo Choi @ 2013-07-24 23:50 UTC (permalink / raw)
To: Viresh Kumar
Cc: Mark Brown, MyungJoo Ham, linaro-kernel, linux-kernel, Mark Brown
Hi Mark,
On 07/22/2013 01:27 PM, Viresh Kumar wrote:
> On 19 July 2013 23:17, Mark Brown <broonie@kernel.org> wrote:
>> From: Mark Brown <broonie@linaro.org>
>>
>> The debounce timeout is generally quite long and the work not performance
>> critical so allow the scheduler to run the work anywhere rather than in
>> the normal per-CPU workqueue.
>>
>> Signed-off-by: Mark Brown <broonie@linaro.org>
>> ---
>> drivers/extcon/extcon-gpio.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
>
This patchset is applied.
Thanks,
Chanwoo Choi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-07-24 23:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-19 17:47 [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce Mark Brown
2013-07-19 17:47 ` [PATCH 2/2] extcon: adc-jack: Use power efficient workqueue Mark Brown
2013-07-22 4:27 ` Viresh Kumar
2013-07-22 4:27 ` [PATCH 1/2] extcon: gpio: Use power efficient workqueue for debounce Viresh Kumar
2013-07-24 23:50 ` Chanwoo Choi
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).