Merge branch 'this_cpu_ops' into for-2.6.38
This commit is contained in:
+1
-1
@@ -214,7 +214,7 @@ static int irq_spurious_proc_show(struct seq_file *m, void *v)
|
||||
|
||||
static int irq_spurious_proc_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, irq_spurious_proc_show, NULL);
|
||||
return single_open(file, irq_spurious_proc_show, PDE(inode)->data);
|
||||
}
|
||||
|
||||
static const struct file_operations irq_spurious_proc_fops = {
|
||||
|
||||
+3
-1
@@ -1082,13 +1082,15 @@ void printk_tick(void)
|
||||
|
||||
int printk_needs_cpu(int cpu)
|
||||
{
|
||||
if (unlikely(cpu_is_offline(cpu)))
|
||||
printk_tick();
|
||||
return per_cpu(printk_pending, cpu);
|
||||
}
|
||||
|
||||
void wake_up_klogd(void)
|
||||
{
|
||||
if (waitqueue_active(&log_wait))
|
||||
__raw_get_cpu_var(printk_pending) = 1;
|
||||
this_cpu_write(printk_pending, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+4
-3
@@ -661,7 +661,7 @@ void wq_worker_waking_up(struct task_struct *task, unsigned int cpu)
|
||||
{
|
||||
struct worker *worker = kthread_data(task);
|
||||
|
||||
if (likely(!(worker->flags & WORKER_NOT_RUNNING)))
|
||||
if (!(worker->flags & WORKER_NOT_RUNNING))
|
||||
atomic_inc(get_gcwq_nr_running(cpu));
|
||||
}
|
||||
|
||||
@@ -687,7 +687,7 @@ struct task_struct *wq_worker_sleeping(struct task_struct *task,
|
||||
struct global_cwq *gcwq = get_gcwq(cpu);
|
||||
atomic_t *nr_running = get_gcwq_nr_running(cpu);
|
||||
|
||||
if (unlikely(worker->flags & WORKER_NOT_RUNNING))
|
||||
if (worker->flags & WORKER_NOT_RUNNING)
|
||||
return NULL;
|
||||
|
||||
/* this can only happen on the local cpu */
|
||||
@@ -3692,7 +3692,8 @@ static int __init init_workqueues(void)
|
||||
system_nrt_wq = alloc_workqueue("events_nrt", WQ_NON_REENTRANT, 0);
|
||||
system_unbound_wq = alloc_workqueue("events_unbound", WQ_UNBOUND,
|
||||
WQ_UNBOUND_MAX_ACTIVE);
|
||||
BUG_ON(!system_wq || !system_long_wq || !system_nrt_wq);
|
||||
BUG_ON(!system_wq || !system_long_wq || !system_nrt_wq ||
|
||||
!system_unbound_wq);
|
||||
return 0;
|
||||
}
|
||||
early_initcall(init_workqueues);
|
||||
|
||||
Reference in New Issue
Block a user