@@ -1018,7 +1018,7 @@ static ssize_t store_io_is_busy(struct cpufreq_interactive_tunables *tunables,
1018
1018
*/
1019
1019
#define show_gov_pol_sys (file_name ) \
1020
1020
static ssize_t show_##file_name##_gov_sys \
1021
- (struct kobject *kobj, struct attribute *attr, char *buf) \
1021
+ (struct kobject *kobj, struct kobj_attribute *attr, char *buf) \
1022
1022
{ \
1023
1023
return show_##file_name(common_tunables, buf); \
1024
1024
} \
@@ -1031,7 +1031,7 @@ static ssize_t show_##file_name##_gov_pol \
1031
1031
1032
1032
#define store_gov_pol_sys (file_name ) \
1033
1033
static ssize_t store_##file_name##_gov_sys \
1034
- (struct kobject *kobj, struct attribute *attr, const char *buf, \
1034
+ (struct kobject *kobj, struct kobj_attribute *attr, const char *buf, \
1035
1035
size_t count) \
1036
1036
{ \
1037
1037
return store_##file_name(common_tunables, buf, count); \
@@ -1060,7 +1060,7 @@ show_store_gov_pol_sys(boostpulse_duration);
1060
1060
show_store_gov_pol_sys (io_is_busy );
1061
1061
1062
1062
#define gov_sys_attr_rw (_name ) \
1063
- static struct global_attr _name##_gov_sys = \
1063
+ static struct kobj_attribute _name##_gov_sys = \
1064
1064
__ATTR(_name, 0644, show_##_name##_gov_sys, store_##_name##_gov_sys)
1065
1065
1066
1066
#define gov_pol_attr_rw (_name ) \
@@ -1082,7 +1082,7 @@ gov_sys_pol_attr_rw(boost);
1082
1082
gov_sys_pol_attr_rw (boostpulse_duration );
1083
1083
gov_sys_pol_attr_rw (io_is_busy );
1084
1084
1085
- static struct global_attr boostpulse_gov_sys =
1085
+ static struct kobj_attribute boostpulse_gov_sys =
1086
1086
__ATTR (boostpulse , 0200 , NULL , store_boostpulse_gov_sys );
1087
1087
1088
1088
static struct freq_attr boostpulse_gov_pol =
0 commit comments