]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cpumask: remove cpumask_t from core
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 04:05:16 +0000 (22:05 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Mar 2009 11:35:17 +0000 (22:05 +1030)
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>
kernel/sched_cpupri.h
kernel/stop_machine.c

index 642a94ef8a0a7fb39f9b341eb292dfad9ab38762..9a7e859b8fbfdd753f09a4bc0949cf5345e2ae75 100644 (file)
@@ -25,7 +25,7 @@ struct cpupri {
 
 #ifdef CONFIG_SMP
 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);
 int cpupri_init(struct cpupri *cp, bool bootmem);
 void cpupri_cleanup(struct cpupri *cp);
index 74541ca49536fda5dab61d473f8ce9d6aa3f3254..912823e2a11b0afb0f4448e5163bb9e39c7fc8b8 100644 (file)
@@ -44,7 +44,7 @@ static DEFINE_MUTEX(setup_lock);
 static int refcount;
 static struct workqueue_struct *stop_machine_wq;
 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 set_state(enum stopmachine_state newstate)