Loading arch/i386/kernel/cpu/mcheck/non-fatal.c +3 −3 Original line number Diff line number Diff line Loading @@ -51,10 +51,10 @@ static void mce_checkregs (void *info) } } static void mce_work_fn(void *data); static DECLARE_WORK(mce_work, mce_work_fn, NULL); static void mce_work_fn(struct work_struct *work); static DECLARE_DELAYED_WORK(mce_work, mce_work_fn); static void mce_work_fn(void *data) static void mce_work_fn(struct work_struct *work) { on_each_cpu(mce_checkregs, NULL, 1, 1); schedule_delayed_work(&mce_work, MCE_RATE); Loading arch/i386/kernel/smpboot.c +6 −5 Original line number Diff line number Diff line Loading @@ -1049,13 +1049,15 @@ void cpu_exit_clear(void) struct warm_boot_cpu_info { struct completion *complete; struct work_struct task; int apicid; int cpu; }; static void __cpuinit do_warm_boot_cpu(void *p) static void __cpuinit do_warm_boot_cpu(struct work_struct *work) { struct warm_boot_cpu_info *info = p; struct warm_boot_cpu_info *info = container_of(work, struct warm_boot_cpu_info, task); do_boot_cpu(info->apicid, info->cpu); complete(info->complete); } Loading @@ -1064,7 +1066,6 @@ static int __cpuinit __smp_prepare_cpu(int cpu) { DECLARE_COMPLETION_ONSTACK(done); struct warm_boot_cpu_info info; struct work_struct task; int apicid, ret; struct Xgt_desc_struct *cpu_gdt_descr = &per_cpu(cpu_gdt_descr, cpu); Loading @@ -1089,7 +1090,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu) info.complete = &done; info.apicid = apicid; info.cpu = cpu; INIT_WORK(&task, do_warm_boot_cpu, &info); INIT_WORK(&info.task, do_warm_boot_cpu); tsc_sync_disabled = 1; Loading @@ -1097,7 +1098,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu) clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, KERNEL_PGD_PTRS); flush_tlb_all(); schedule_work(&task); schedule_work(&info.task); wait_for_completion(&done); tsc_sync_disabled = 0; Loading arch/i386/kernel/tsc.c +2 −2 Original line number Diff line number Diff line Loading @@ -217,7 +217,7 @@ static unsigned int cpufreq_delayed_issched = 0; static unsigned int cpufreq_init = 0; static struct work_struct cpufreq_delayed_get_work; static void handle_cpufreq_delayed_get(void *v) static void handle_cpufreq_delayed_get(struct work_struct *work) { unsigned int cpu; Loading Loading @@ -306,7 +306,7 @@ static int __init cpufreq_tsc(void) { int ret; INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get, NULL); INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get); ret = cpufreq_register_notifier(&time_cpufreq_notifier_block, CPUFREQ_TRANSITION_NOTIFIER); if (!ret) Loading arch/powerpc/platforms/pseries/eeh_event.c +3 −3 Original line number Diff line number Diff line Loading @@ -37,8 +37,8 @@ /* EEH event workqueue setup. */ static DEFINE_SPINLOCK(eeh_eventlist_lock); LIST_HEAD(eeh_eventlist); static void eeh_thread_launcher(void *); DECLARE_WORK(eeh_event_wq, eeh_thread_launcher, NULL); static void eeh_thread_launcher(struct work_struct *); DECLARE_WORK(eeh_event_wq, eeh_thread_launcher); /* Serialize reset sequences for a given pci device */ DEFINE_MUTEX(eeh_event_mutex); Loading Loading @@ -103,7 +103,7 @@ static int eeh_event_handler(void * dummy) * eeh_thread_launcher * @dummy - unused */ static void eeh_thread_launcher(void *dummy) static void eeh_thread_launcher(struct work_struct *dummy) { if (kernel_thread(eeh_event_handler, NULL, CLONE_KERNEL) < 0) printk(KERN_ERR "Failed to start EEH daemon\n"); Loading drivers/atm/idt77252.c +5 −4 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ static int idt77252_change_qos(struct atm_vcc *vcc, struct atm_qos *qos, int flags); static int idt77252_proc_read(struct atm_dev *dev, loff_t * pos, char *page); static void idt77252_softint(void *dev_id); static void idt77252_softint(struct work_struct *work); static struct atmdev_ops idt77252_ops = Loading Loading @@ -2866,9 +2866,10 @@ idt77252_interrupt(int irq, void *dev_id) } static void idt77252_softint(void *dev_id) idt77252_softint(struct work_struct *work) { struct idt77252_dev *card = dev_id; struct idt77252_dev *card = container_of(work, struct idt77252_dev, tqueue); u32 stat; int done; Loading Loading @@ -3697,7 +3698,7 @@ idt77252_init_one(struct pci_dev *pcidev, const struct pci_device_id *id) card->pcidev = pcidev; sprintf(card->name, "idt77252-%d", card->index); INIT_WORK(&card->tqueue, idt77252_softint, (void *)card); INIT_WORK(&card->tqueue, idt77252_softint); membase = pci_resource_start(pcidev, 1); srambase = pci_resource_start(pcidev, 2); Loading Loading
arch/i386/kernel/cpu/mcheck/non-fatal.c +3 −3 Original line number Diff line number Diff line Loading @@ -51,10 +51,10 @@ static void mce_checkregs (void *info) } } static void mce_work_fn(void *data); static DECLARE_WORK(mce_work, mce_work_fn, NULL); static void mce_work_fn(struct work_struct *work); static DECLARE_DELAYED_WORK(mce_work, mce_work_fn); static void mce_work_fn(void *data) static void mce_work_fn(struct work_struct *work) { on_each_cpu(mce_checkregs, NULL, 1, 1); schedule_delayed_work(&mce_work, MCE_RATE); Loading
arch/i386/kernel/smpboot.c +6 −5 Original line number Diff line number Diff line Loading @@ -1049,13 +1049,15 @@ void cpu_exit_clear(void) struct warm_boot_cpu_info { struct completion *complete; struct work_struct task; int apicid; int cpu; }; static void __cpuinit do_warm_boot_cpu(void *p) static void __cpuinit do_warm_boot_cpu(struct work_struct *work) { struct warm_boot_cpu_info *info = p; struct warm_boot_cpu_info *info = container_of(work, struct warm_boot_cpu_info, task); do_boot_cpu(info->apicid, info->cpu); complete(info->complete); } Loading @@ -1064,7 +1066,6 @@ static int __cpuinit __smp_prepare_cpu(int cpu) { DECLARE_COMPLETION_ONSTACK(done); struct warm_boot_cpu_info info; struct work_struct task; int apicid, ret; struct Xgt_desc_struct *cpu_gdt_descr = &per_cpu(cpu_gdt_descr, cpu); Loading @@ -1089,7 +1090,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu) info.complete = &done; info.apicid = apicid; info.cpu = cpu; INIT_WORK(&task, do_warm_boot_cpu, &info); INIT_WORK(&info.task, do_warm_boot_cpu); tsc_sync_disabled = 1; Loading @@ -1097,7 +1098,7 @@ static int __cpuinit __smp_prepare_cpu(int cpu) clone_pgd_range(swapper_pg_dir, swapper_pg_dir + USER_PGD_PTRS, KERNEL_PGD_PTRS); flush_tlb_all(); schedule_work(&task); schedule_work(&info.task); wait_for_completion(&done); tsc_sync_disabled = 0; Loading
arch/i386/kernel/tsc.c +2 −2 Original line number Diff line number Diff line Loading @@ -217,7 +217,7 @@ static unsigned int cpufreq_delayed_issched = 0; static unsigned int cpufreq_init = 0; static struct work_struct cpufreq_delayed_get_work; static void handle_cpufreq_delayed_get(void *v) static void handle_cpufreq_delayed_get(struct work_struct *work) { unsigned int cpu; Loading Loading @@ -306,7 +306,7 @@ static int __init cpufreq_tsc(void) { int ret; INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get, NULL); INIT_WORK(&cpufreq_delayed_get_work, handle_cpufreq_delayed_get); ret = cpufreq_register_notifier(&time_cpufreq_notifier_block, CPUFREQ_TRANSITION_NOTIFIER); if (!ret) Loading
arch/powerpc/platforms/pseries/eeh_event.c +3 −3 Original line number Diff line number Diff line Loading @@ -37,8 +37,8 @@ /* EEH event workqueue setup. */ static DEFINE_SPINLOCK(eeh_eventlist_lock); LIST_HEAD(eeh_eventlist); static void eeh_thread_launcher(void *); DECLARE_WORK(eeh_event_wq, eeh_thread_launcher, NULL); static void eeh_thread_launcher(struct work_struct *); DECLARE_WORK(eeh_event_wq, eeh_thread_launcher); /* Serialize reset sequences for a given pci device */ DEFINE_MUTEX(eeh_event_mutex); Loading Loading @@ -103,7 +103,7 @@ static int eeh_event_handler(void * dummy) * eeh_thread_launcher * @dummy - unused */ static void eeh_thread_launcher(void *dummy) static void eeh_thread_launcher(struct work_struct *dummy) { if (kernel_thread(eeh_event_handler, NULL, CLONE_KERNEL) < 0) printk(KERN_ERR "Failed to start EEH daemon\n"); Loading
drivers/atm/idt77252.c +5 −4 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ static int idt77252_change_qos(struct atm_vcc *vcc, struct atm_qos *qos, int flags); static int idt77252_proc_read(struct atm_dev *dev, loff_t * pos, char *page); static void idt77252_softint(void *dev_id); static void idt77252_softint(struct work_struct *work); static struct atmdev_ops idt77252_ops = Loading Loading @@ -2866,9 +2866,10 @@ idt77252_interrupt(int irq, void *dev_id) } static void idt77252_softint(void *dev_id) idt77252_softint(struct work_struct *work) { struct idt77252_dev *card = dev_id; struct idt77252_dev *card = container_of(work, struct idt77252_dev, tqueue); u32 stat; int done; Loading Loading @@ -3697,7 +3698,7 @@ idt77252_init_one(struct pci_dev *pcidev, const struct pci_device_id *id) card->pcidev = pcidev; sprintf(card->name, "idt77252-%d", card->index); INIT_WORK(&card->tqueue, idt77252_softint, (void *)card); INIT_WORK(&card->tqueue, idt77252_softint); membase = pci_resource_start(pcidev, 1); srambase = pci_resource_start(pcidev, 2); Loading