Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204364
b: refs/heads/master
c: 0500e9b
h: refs/heads/master
v: v3
  • Loading branch information
Steffen Klassert authored and Herbert Xu committed Jul 31, 2010
1 parent 9c97a64 commit e2304d6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 38 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: d3f64e46aa21dd86a239274d218ec286461bfa68
refs/heads/master: 0500e9b3f11ce84fc6ee48a3e29909145e58ba48
2 changes: 0 additions & 2 deletions trunk/include/linux/padata.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ extern void padata_free(struct padata_instance *pinst);
extern int padata_do_parallel(struct padata_instance *pinst,
struct padata_priv *padata, int cb_cpu);
extern void padata_do_serial(struct padata_priv *padata);
extern int padata_get_cpumask(struct padata_instance *pinst,
int cpumask_type, struct cpumask *out_mask);
extern int padata_set_cpumask(struct padata_instance *pinst, int cpumask_type,
cpumask_var_t cpumask);
extern int padata_set_cpumasks(struct padata_instance *pinst,
Expand Down
35 changes: 0 additions & 35 deletions trunk/kernel/padata.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,41 +589,6 @@ static bool padata_validate_cpumask(struct padata_instance *pinst,
return true;
}

/**
* padata_get_cpumask: Fetch serial or parallel cpumask from the
* given padata instance and copy it to @out_mask
*
* @pinst: A pointer to padata instance
* @cpumask_type: Specifies which cpumask will be copied.
* Possible values are PADATA_CPU_SERIAL *or* PADATA_CPU_PARALLEL
* corresponding to serial and parallel cpumask respectively.
* @out_mask: A pointer to cpumask structure where selected
* cpumask will be copied.
*/
int padata_get_cpumask(struct padata_instance *pinst,
int cpumask_type, struct cpumask *out_mask)
{
struct parallel_data *pd;
int ret = 0;

rcu_read_lock_bh();
pd = rcu_dereference(pinst->pd);
switch (cpumask_type) {
case PADATA_CPU_SERIAL:
cpumask_copy(out_mask, pd->cpumask.cbcpu);
break;
case PADATA_CPU_PARALLEL:
cpumask_copy(out_mask, pd->cpumask.pcpu);
break;
default:
ret = -EINVAL;
}

rcu_read_unlock_bh();
return ret;
}
EXPORT_SYMBOL(padata_get_cpumask);

static int __padata_set_cpumasks(struct padata_instance *pinst,
cpumask_var_t pcpumask,
cpumask_var_t cbcpumask)
Expand Down

0 comments on commit e2304d6

Please sign in to comment.