diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-18 15:30:23 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-19 03:21:56 -0500 |
commit | 06aaf76a7e2e4cc57eabcb8f43ec99c961fe55fe (patch) | |
tree | 82321fd9e565deaeedc9dd1c4de7c52c0e4113b7 /include/linux | |
parent | 100fdaee70ebf5f31b9451fbc01300c627091328 (diff) |
sched: move test_sd_parent() to an SMP section of sched.h
Impact: build fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 5a933d925473..e5f928a079e8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -920,6 +920,15 @@ extern void partition_sched_domains(int ndoms_new, struct cpumask *doms_new, | |||
920 | struct sched_domain_attr *dattr_new); | 920 | struct sched_domain_attr *dattr_new); |
921 | extern int arch_reinit_sched_domains(void); | 921 | extern int arch_reinit_sched_domains(void); |
922 | 922 | ||
923 | /* Test a flag in parent sched domain */ | ||
924 | static inline int test_sd_parent(struct sched_domain *sd, int flag) | ||
925 | { | ||
926 | if (sd->parent && (sd->parent->flags & flag)) | ||
927 | return 1; | ||
928 | |||
929 | return 0; | ||
930 | } | ||
931 | |||
923 | #else /* CONFIG_SMP */ | 932 | #else /* CONFIG_SMP */ |
924 | 933 | ||
925 | struct sched_domain_attr; | 934 | struct sched_domain_attr; |
@@ -1431,15 +1440,6 @@ struct task_struct { | |||
1431 | #endif | 1440 | #endif |
1432 | }; | 1441 | }; |
1433 | 1442 | ||
1434 | /* Test a flag in parent sched domain */ | ||
1435 | static inline int test_sd_parent(struct sched_domain *sd, int flag) | ||
1436 | { | ||
1437 | if (sd->parent && (sd->parent->flags & flag)) | ||
1438 | return 1; | ||
1439 | |||
1440 | return 0; | ||
1441 | } | ||
1442 | |||
1443 | /* | 1443 | /* |
1444 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT | 1444 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT |
1445 | * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH | 1445 | * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH |