diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-12-09 12:49:50 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-12 07:47:21 -0500 |
commit | ee79d1bdb6a10499e53f80b1e8d14110215178ba (patch) | |
tree | e9273d48cadb0b2ba77865e3405ad5e3e9664ff9 /kernel | |
parent | c1dfdc7597d051b09555d4ae2acb90403e238746 (diff) |
sched: let arch_update_cpu_topology indicate if topology changed
Change arch_update_cpu_topology so it returns 1 if the cpu topology changed
and 0 if it didn't change. This will be useful for the next patch which adds
a call to this function in partition_sched_domains.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index ef212da928e..fcfbbd9dbd6 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7675,8 +7675,14 @@ static struct sched_domain_attr *dattr_cur; | |||
7675 | */ | 7675 | */ |
7676 | static cpumask_t fallback_doms; | 7676 | static cpumask_t fallback_doms; |
7677 | 7677 | ||
7678 | void __attribute__((weak)) arch_update_cpu_topology(void) | 7678 | /* |
7679 | * arch_update_cpu_topology lets virtualized architectures update the | ||
7680 | * cpu core maps. It is supposed to return 1 if the topology changed | ||
7681 | * or 0 if it stayed the same. | ||
7682 | */ | ||
7683 | int __attribute__((weak)) arch_update_cpu_topology(void) | ||
7679 | { | 7684 | { |
7685 | return 0; | ||
7680 | } | 7686 | } |
7681 | 7687 | ||
7682 | /* | 7688 | /* |