Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126811
b: refs/heads/master
c: c70f22d
h: refs/heads/master
i:
  126809: 8ebaf6f
  126807: 67ad996
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Jan 5, 2009
1 parent d43731e commit e882394
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39aac64812da70f0af262f4700e67637338cbb3b
refs/heads/master: c70f22d203fc02c805b6ed4a3483b740dc36786b
1 change: 0 additions & 1 deletion trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,6 @@ static inline struct cpumask *sched_domain_span(struct sched_domain *sd)

extern void partition_sched_domains(int ndoms_new, struct cpumask *doms_new,
struct sched_domain_attr *dattr_new);
extern int arch_reinit_sched_domains(void);

/* Test a flag in parent sched domain */
static inline int test_sd_parent(struct sched_domain *sd, int flag)
Expand Down
9 changes: 3 additions & 6 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -7987,7 +7987,7 @@ void partition_sched_domains(int ndoms_new, struct cpumask *doms_new,
}

#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();

Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit e882394

Please sign in to comment.