diff options
-rw-r--r-- | kernel/sched.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 0236958addcb..21f7da94662e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7671,34 +7671,34 @@ static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt) | |||
7671 | } | 7671 | } |
7672 | 7672 | ||
7673 | #ifdef CONFIG_SCHED_MC | 7673 | #ifdef CONFIG_SCHED_MC |
7674 | static ssize_t sched_mc_power_savings_show(struct sys_device *dev, | 7674 | static ssize_t sched_mc_power_savings_show(struct sysdev_class *class, |
7675 | struct sysdev_attribute *attr, char *page) | 7675 | char *page) |
7676 | { | 7676 | { |
7677 | return sprintf(page, "%u\n", sched_mc_power_savings); | 7677 | return sprintf(page, "%u\n", sched_mc_power_savings); |
7678 | } | 7678 | } |
7679 | static ssize_t sched_mc_power_savings_store(struct sys_device *dev, | 7679 | static ssize_t sched_mc_power_savings_store(struct sysdev_class *class, |
7680 | struct sysdev_attribute *attr, | ||
7681 | const char *buf, size_t count) | 7680 | const char *buf, size_t count) |
7682 | { | 7681 | { |
7683 | return sched_power_savings_store(buf, count, 0); | 7682 | return sched_power_savings_store(buf, count, 0); |
7684 | } | 7683 | } |
7685 | static SYSDEV_ATTR(sched_mc_power_savings, 0644, sched_mc_power_savings_show, | 7684 | static SYSDEV_CLASS_ATTR(sched_mc_power_savings, 0644, |
7686 | sched_mc_power_savings_store); | 7685 | sched_mc_power_savings_show, |
7686 | sched_mc_power_savings_store); | ||
7687 | #endif | 7687 | #endif |
7688 | 7688 | ||
7689 | #ifdef CONFIG_SCHED_SMT | 7689 | #ifdef CONFIG_SCHED_SMT |
7690 | static ssize_t sched_smt_power_savings_show(struct sys_device *dev, | 7690 | static ssize_t sched_smt_power_savings_show(struct sysdev_class *dev, |
7691 | struct sysdev_attribute *attr, char *page) | 7691 | char *page) |
7692 | { | 7692 | { |
7693 | return sprintf(page, "%u\n", sched_smt_power_savings); | 7693 | return sprintf(page, "%u\n", sched_smt_power_savings); |
7694 | } | 7694 | } |
7695 | static ssize_t sched_smt_power_savings_store(struct sys_device *dev, | 7695 | static ssize_t sched_smt_power_savings_store(struct sysdev_class *dev, |
7696 | struct sysdev_attribute *attr, | ||
7697 | const char *buf, size_t count) | 7696 | const char *buf, size_t count) |
7698 | { | 7697 | { |
7699 | return sched_power_savings_store(buf, count, 1); | 7698 | return sched_power_savings_store(buf, count, 1); |
7700 | } | 7699 | } |
7701 | static SYSDEV_ATTR(sched_smt_power_savings, 0644, sched_smt_power_savings_show, | 7700 | static SYSDEV_CLASS_ATTR(sched_smt_power_savings, 0644, |
7701 | sched_smt_power_savings_show, | ||
7702 | sched_smt_power_savings_store); | 7702 | sched_smt_power_savings_store); |
7703 | #endif | 7703 | #endif |
7704 | 7704 | ||