File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -924,7 +924,7 @@ cpufreq_freq_attr_rw(scaling_max_freq);
924
924
cpufreq_freq_attr_rw (scaling_governor );
925
925
cpufreq_freq_attr_rw (scaling_setspeed );
926
926
927
- static struct attribute * default_attrs [] = {
927
+ static struct attribute * cpufreq_attrs [] = {
928
928
& cpuinfo_min_freq .attr ,
929
929
& cpuinfo_max_freq .attr ,
930
930
& cpuinfo_transition_latency .attr ,
@@ -938,6 +938,7 @@ static struct attribute *default_attrs[] = {
938
938
& scaling_setspeed .attr ,
939
939
NULL
940
940
};
941
+ ATTRIBUTE_GROUPS (cpufreq );
941
942
942
943
#define to_policy (k ) container_of(k, struct cpufreq_policy, kobj)
943
944
#define to_attr (a ) container_of(a, struct freq_attr, attr)
@@ -1000,7 +1001,7 @@ static const struct sysfs_ops sysfs_ops = {
1000
1001
1001
1002
static struct kobj_type ktype_cpufreq = {
1002
1003
.sysfs_ops = & sysfs_ops ,
1003
- .default_attrs = default_attrs ,
1004
+ .default_groups = cpufreq_groups ,
1004
1005
.release = cpufreq_sysfs_release ,
1005
1006
};
1006
1007
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ gov_attr_rw(ignore_nice_load);
257
257
gov_attr_rw (down_threshold );
258
258
gov_attr_rw (freq_step );
259
259
260
- static struct attribute * cs_attributes [] = {
260
+ static struct attribute * cs_attrs [] = {
261
261
& sampling_rate .attr ,
262
262
& sampling_down_factor .attr ,
263
263
& up_threshold .attr ,
@@ -266,6 +266,7 @@ static struct attribute *cs_attributes[] = {
266
266
& freq_step .attr ,
267
267
NULL
268
268
};
269
+ ATTRIBUTE_GROUPS (cs );
269
270
270
271
/************************** sysfs end ************************/
271
272
@@ -315,7 +316,7 @@ static void cs_start(struct cpufreq_policy *policy)
315
316
316
317
static struct dbs_governor cs_governor = {
317
318
.gov = CPUFREQ_DBS_GOVERNOR_INITIALIZER ("conservative" ),
318
- .kobj_type = { .default_attrs = cs_attributes },
319
+ .kobj_type = { .default_groups = cs_groups },
319
320
.gov_dbs_update = cs_dbs_update ,
320
321
.alloc = cs_alloc ,
321
322
.free = cs_free ,
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ gov_attr_rw(sampling_down_factor);
328
328
gov_attr_rw (ignore_nice_load );
329
329
gov_attr_rw (powersave_bias );
330
330
331
- static struct attribute * od_attributes [] = {
331
+ static struct attribute * od_attrs [] = {
332
332
& sampling_rate .attr ,
333
333
& up_threshold .attr ,
334
334
& sampling_down_factor .attr ,
@@ -337,6 +337,7 @@ static struct attribute *od_attributes[] = {
337
337
& io_is_busy .attr ,
338
338
NULL
339
339
};
340
+ ATTRIBUTE_GROUPS (od );
340
341
341
342
/************************** sysfs end ************************/
342
343
@@ -401,7 +402,7 @@ static struct od_ops od_ops = {
401
402
402
403
static struct dbs_governor od_dbs_gov = {
403
404
.gov = CPUFREQ_DBS_GOVERNOR_INITIALIZER ("ondemand" ),
404
- .kobj_type = { .default_attrs = od_attributes },
405
+ .kobj_type = { .default_groups = od_groups },
405
406
.gov_dbs_update = od_dbs_update ,
406
407
.alloc = od_alloc ,
407
408
.free = od_free ,
You can’t perform that action at this time.
0 commit comments