Re: [PATCH v4 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-21 Thread Chanwoo Choi
On 10/22/20 11:30 AM, Dmitry Osipenko wrote: > Hello Chanwoo, > > 20.10.2020 06:04, Chanwoo Choi пишет: >> @@ -1354,55 +1365,71 @@ static ssize_t governor_store(struct device *dev, >> struct device_attribute *attr, >> struct devfreq *df = to_devfreq(dev); >> int ret; >> char str_go

Re: [PATCH v4 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-21 Thread Chanwoo Choi
On 10/22/20 11:30 AM, Dmitry Osipenko wrote: > 20.10.2020 06:04, Chanwoo Choi пишет: >> /** >> * struct devfreq_governor - Devfreq policy governor >> * @node: list node - contains registered devfreq governors >> * @name: Governor's name >> + * @attr: Governor's

Re: [PATCH v4 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-21 Thread Dmitry Osipenko
Hello Chanwoo, 20.10.2020 06:04, Chanwoo Choi пишет: > @@ -1354,55 +1365,71 @@ static ssize_t governor_store(struct device *dev, > struct device_attribute *attr, > struct devfreq *df = to_devfreq(dev); > int ret; > char str_governor[DEVFREQ_NAME_LEN + 1]; > - const struct de

Re: [PATCH v4 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-21 Thread Dmitry Osipenko
20.10.2020 06:04, Chanwoo Choi пишет: > /** > * struct devfreq_governor - Devfreq policy governor > * @node:list node - contains registered devfreq governors > * @name:Governor's name > + * @attr:Governor's sysfs attribute flag > * @flags: Gove

[PATCH v4 2/2] PM / devfreq: Add governor attribute flag for specifc sysfs nodes

2020-10-19 Thread Chanwoo Choi
DEVFREQ supports the default governors like performance, simple_ondemand and also allows the devfreq driver to add their own governor like tegra30-devfreq.c according to their requirement. In result, some sysfs attributes are useful or not useful. Prior to that the user can access all sysfs attribu