|
@@ -7671,34 +7671,34 @@ static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt)
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_SCHED_MC
|
|
|
-static ssize_t sched_mc_power_savings_show(struct sys_device *dev,
|
|
|
- struct sysdev_attribute *attr, char *page)
|
|
|
+static ssize_t sched_mc_power_savings_show(struct sysdev_class *class,
|
|
|
+ char *page)
|
|
|
{
|
|
|
return sprintf(page, "%u\n", sched_mc_power_savings);
|
|
|
}
|
|
|
-static ssize_t sched_mc_power_savings_store(struct sys_device *dev,
|
|
|
- struct sysdev_attribute *attr,
|
|
|
+static ssize_t sched_mc_power_savings_store(struct sysdev_class *class,
|
|
|
const char *buf, size_t count)
|
|
|
{
|
|
|
return sched_power_savings_store(buf, count, 0);
|
|
|
}
|
|
|
-static SYSDEV_ATTR(sched_mc_power_savings, 0644, sched_mc_power_savings_show,
|
|
|
- sched_mc_power_savings_store);
|
|
|
+static SYSDEV_CLASS_ATTR(sched_mc_power_savings, 0644,
|
|
|
+ sched_mc_power_savings_show,
|
|
|
+ sched_mc_power_savings_store);
|
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_SCHED_SMT
|
|
|
-static ssize_t sched_smt_power_savings_show(struct sys_device *dev,
|
|
|
- struct sysdev_attribute *attr, char *page)
|
|
|
+static ssize_t sched_smt_power_savings_show(struct sysdev_class *dev,
|
|
|
+ char *page)
|
|
|
{
|
|
|
return sprintf(page, "%u\n", sched_smt_power_savings);
|
|
|
}
|
|
|
-static ssize_t sched_smt_power_savings_store(struct sys_device *dev,
|
|
|
- struct sysdev_attribute *attr,
|
|
|
+static ssize_t sched_smt_power_savings_store(struct sysdev_class *dev,
|
|
|
const char *buf, size_t count)
|
|
|
{
|
|
|
return sched_power_savings_store(buf, count, 1);
|
|
|
}
|
|
|
-static SYSDEV_ATTR(sched_smt_power_savings, 0644, sched_smt_power_savings_show,
|
|
|
+static SYSDEV_CLASS_ATTR(sched_smt_power_savings, 0644,
|
|
|
+ sched_smt_power_savings_show,
|
|
|
sched_smt_power_savings_store);
|
|
|
#endif
|
|
|
|