Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125331
b: refs/heads/master
c: 96f874e
h: refs/heads/master
i:
  125329: a189172
  125327: a989a09
v: v3
  • Loading branch information
Rusty Russell authored and Ingo Molnar committed Nov 24, 2008
1 parent 300cff8 commit a2565c8
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 119 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: 0e3900e6d3b04c44737ebc505604dcd8ed30e354
refs/heads/master: 96f874e26428ab5d2db681c100210c254775e154
16 changes: 8 additions & 8 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ static inline struct cpumask *sched_domain_span(struct sched_domain *sd)
return to_cpumask(sd->span);
}

extern void partition_sched_domains(int ndoms_new, cpumask_t *doms_new,
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);

Expand All @@ -888,7 +888,7 @@ extern int arch_reinit_sched_domains(void);
struct sched_domain_attr;

static inline void
partition_sched_domains(int ndoms_new, cpumask_t *doms_new,
partition_sched_domains(int ndoms_new, struct cpumask *doms_new,
struct sched_domain_attr *dattr_new)
{
}
Expand Down Expand Up @@ -970,7 +970,7 @@ struct sched_class {
void (*task_wake_up) (struct rq *this_rq, struct task_struct *task);

void (*set_cpus_allowed)(struct task_struct *p,
const cpumask_t *newmask);
const struct cpumask *newmask);

void (*rq_online)(struct rq *rq);
void (*rq_offline)(struct rq *rq);
Expand Down Expand Up @@ -1612,12 +1612,12 @@ extern cputime_t task_gtime(struct task_struct *p);

#ifdef CONFIG_SMP
extern int set_cpus_allowed_ptr(struct task_struct *p,
const cpumask_t *new_mask);
const struct cpumask *new_mask);
#else
static inline int set_cpus_allowed_ptr(struct task_struct *p,
const cpumask_t *new_mask)
const struct cpumask *new_mask)
{
if (!cpu_isset(0, *new_mask))
if (!cpumask_test_cpu(0, new_mask))
return -EINVAL;
return 0;
}
Expand Down Expand Up @@ -2230,8 +2230,8 @@ __trace_special(void *__tr, void *__data,
}
#endif

extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask);
extern long sched_getaffinity(pid_t pid, cpumask_t *mask);
extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask);
extern long sched_getaffinity(pid_t pid, struct cpumask *mask);

extern int sched_mc_power_savings, sched_smt_power_savings;

Expand Down
Loading

0 comments on commit a2565c8

Please sign in to comment.