lkml.org 
[lkml]   [2013]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH V4 3/4] block: queue work on unbound wq
From
On Tue, Apr 9, 2013 at 3:25 PM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On 9 April 2013 15:23, Amit Kucheria <amit.kucheria@linaro.org> wrote:
>> On Tue, Apr 9, 2013 at 1:00 PM, Viresh Kumar <viresh.kumar@linaro.org> wrote:
>>> Later one (Power oriented WQ) can be achieved if the workqueue is allocated with
>>
>> Rephrase as "Power-efficient workqueues can be achieved..."
>
> Ok.
>
>>> WQ_UNBOUND flag. To make this compile time configurable with boot time override
>>> this patch adds in another flag WQ_POWER_EFFICIENT. This will be converted to
>>> WQ_UNBOUND (on wq allocation) if CONFIG_WQ_POWER_EFFICIENT is enabled and
>>> bootargs contain workqueue.power_efficient=1. It is unused otherwise and normal
>>> behavior of WQ without this flag is expected.
>>
>> Addition of a new flag seems a bit excessive IMHO. Why can't we just
>> set the UNBOUND flag when the wq_power_efficient module param is set?
>>
>> It would make the patch a lot simpler too.
>
> But how will we know if the user of wq wants to save power or not? He must
> give some flag which is only used when power saving is enabled. We can't
> set WQ_UNBOUND for all wqs.

You have the Kconfig option + the module param for that. You don't need a flag.


\
 
 \ /
  Last update: 2013-04-09 23:01    [W:0.059 / U:1.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site