mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
cpumask: remove cpumask_t from core
Impact: cleanup struct cpumask is nicer, and we use it to make where we've made code safe for CONFIG_CPUMASK_OFFSTACK=y. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
73d0a4b107
commit
612a726faf
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ struct cpupri {
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
int cpupri_find(struct cpupri *cp,
|
int cpupri_find(struct cpupri *cp,
|
||||||
struct task_struct *p, cpumask_t *lowest_mask);
|
struct task_struct *p, struct cpumask *lowest_mask);
|
||||||
void cpupri_set(struct cpupri *cp, int cpu, int pri);
|
void cpupri_set(struct cpupri *cp, int cpu, int pri);
|
||||||
int cpupri_init(struct cpupri *cp, bool bootmem);
|
int cpupri_init(struct cpupri *cp, bool bootmem);
|
||||||
void cpupri_cleanup(struct cpupri *cp);
|
void cpupri_cleanup(struct cpupri *cp);
|
||||||
|
|
|
@ -44,7 +44,7 @@ static DEFINE_MUTEX(setup_lock);
|
||||||
static int refcount;
|
static int refcount;
|
||||||
static struct workqueue_struct *stop_machine_wq;
|
static struct workqueue_struct *stop_machine_wq;
|
||||||
static struct stop_machine_data active, idle;
|
static struct stop_machine_data active, idle;
|
||||||
static const cpumask_t *active_cpus;
|
static const struct cpumask *active_cpus;
|
||||||
static void *stop_machine_work;
|
static void *stop_machine_work;
|
||||||
|
|
||||||
static void set_state(enum stopmachine_state newstate)
|
static void set_state(enum stopmachine_state newstate)
|
||||||
|
|
Loading…
Reference in a new issue