summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ehca/ehca_irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-07-16 14:42:39 +0400
committerThomas Gleixner <tglx@linutronix.de>2012-08-13 19:01:08 +0400
commit81942621bd6b70b1a1ac4692b3f8f3be65a91b44 (patch)
treefe5155456b7677d30bbbb801fe280e3e98bed445 /drivers/infiniband/hw/ehca/ehca_irq.h
parent62ab7072476ae1600e877cc62b43758e485f4f1e (diff)
downloadlinux-81942621bd6b70b1a1ac4692b3f8f3be65a91b44.tar.xz
infiniband: Ehca: Use hotplug thread infrastructure
Get rid of the hotplug notifiers and use the generic hotplug thread infrastructure. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/20120716103948.775527032@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_irq.h')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_irq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_irq.h b/drivers/infiniband/hw/ehca/ehca_irq.h
index 3346cb06cea6..5370199f08c7 100644
--- a/drivers/infiniband/hw/ehca/ehca_irq.h
+++ b/drivers/infiniband/hw/ehca/ehca_irq.h
@@ -58,15 +58,15 @@ void ehca_tasklet_eq(unsigned long data);
void ehca_process_eq(struct ehca_shca *shca, int is_irq);
struct ehca_cpu_comp_task {
- wait_queue_head_t wait_queue;
struct list_head cq_list;
- struct task_struct *task;
spinlock_t task_lock;
int cq_jobs;
+ int active;
};
struct ehca_comp_pool {
- struct ehca_cpu_comp_task *cpu_comp_tasks;
+ struct ehca_cpu_comp_task __percpu *cpu_comp_tasks;
+ struct task_struct * __percpu *cpu_comp_threads;
int last_cpu;
spinlock_t last_cpu_lock;
};