Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125383
b: refs/heads/master
c: 06aaf76
h: refs/heads/master
i:
  125381: ad9f8a4
  125379: b4d88b3
  125375: ba54daf
v: v3
  • Loading branch information
Ingo Molnar committed Dec 19, 2008
1 parent 95f9d8e commit 4bb61b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 100fdaee70ebf5f31b9451fbc01300c627091328
refs/heads/master: 06aaf76a7e2e4cc57eabcb8f43ec99c961fe55fe
18 changes: 9 additions & 9 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,15 @@ 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)
{
if (sd->parent && (sd->parent->flags & flag))
return 1;

return 0;
}

#else /* CONFIG_SMP */

struct sched_domain_attr;
Expand Down Expand Up @@ -1431,15 +1440,6 @@ struct task_struct {
#endif
};

/* Test a flag in parent sched domain */
static inline int test_sd_parent(struct sched_domain *sd, int flag)
{
if (sd->parent && (sd->parent->flags & flag))
return 1;

return 0;
}

/*
* Priority of a process goes from 0..MAX_PRIO-1, valid RT
* priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH
Expand Down

0 comments on commit 4bb61b1

Please sign in to comment.