|
@@ -7987,7 +7987,7 @@ match2:
|
|
|
}
|
|
|
|
|
|
#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
|
|
|
-int arch_reinit_sched_domains(void)
|
|
|
+static void arch_reinit_sched_domains(void)
|
|
|
{
|
|
|
get_online_cpus();
|
|
|
|
|
@@ -7996,13 +7996,10 @@ int arch_reinit_sched_domains(void)
|
|
|
|
|
|
rebuild_sched_domains();
|
|
|
put_online_cpus();
|
|
|
-
|
|
|
- return 0;
|
|
|
}
|
|
|
|
|
|
static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt)
|
|
|
{
|
|
|
- int ret;
|
|
|
unsigned int level = 0;
|
|
|
|
|
|
if (sscanf(buf, "%u", &level) != 1)
|
|
@@ -8023,9 +8020,9 @@ static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt)
|
|
|
else
|
|
|
sched_mc_power_savings = level;
|
|
|
|
|
|
- ret = arch_reinit_sched_domains();
|
|
|
+ arch_reinit_sched_domains();
|
|
|
|
|
|
- return ret ? ret : count;
|
|
|
+ return count;
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_SCHED_MC
|