aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 9a8e296959c1..c5019a5dcaa4 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7987,7 +7987,7 @@ match2:
7987} 7987}
7988 7988
7989#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT) 7989#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
7990int arch_reinit_sched_domains(void) 7990static void arch_reinit_sched_domains(void)
7991{ 7991{
7992 get_online_cpus(); 7992 get_online_cpus();
7993 7993
@@ -7996,13 +7996,10 @@ int arch_reinit_sched_domains(void)
7996 7996
7997 rebuild_sched_domains(); 7997 rebuild_sched_domains();
7998 put_online_cpus(); 7998 put_online_cpus();
7999
8000 return 0;
8001} 7999}
8002 8000
8003static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt) 8001static ssize_t sched_power_savings_store(const char *buf, size_t count, int smt)
8004{ 8002{
8005 int ret;
8006 unsigned int level = 0; 8003 unsigned int level = 0;
8007 8004
8008 if (sscanf(buf, "%u", &level) != 1) 8005 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)
8023 else 8020 else
8024 sched_mc_power_savings = level; 8021 sched_mc_power_savings = level;
8025 8022
8026 ret = arch_reinit_sched_domains(); 8023 arch_reinit_sched_domains();
8027 8024
8028 return ret ? ret : count; 8025 return count;
8029} 8026}
8030 8027
8031#ifdef CONFIG_SCHED_MC 8028#ifdef CONFIG_SCHED_MC