diff options
Diffstat (limited to 'net/iucv/iucv.c')
-rw-r--r-- | net/iucv/iucv.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c index 3973d0e61e56..3b1f5f5f8de7 100644 --- a/net/iucv/iucv.c +++ b/net/iucv/iucv.c | |||
@@ -1768,7 +1768,6 @@ static void iucv_tasklet_fn(unsigned long ignored) | |||
1768 | */ | 1768 | */ |
1769 | static void iucv_work_fn(struct work_struct *work) | 1769 | static void iucv_work_fn(struct work_struct *work) |
1770 | { | 1770 | { |
1771 | typedef void iucv_irq_fn(struct iucv_irq_data *); | ||
1772 | LIST_HEAD(work_queue); | 1771 | LIST_HEAD(work_queue); |
1773 | struct iucv_irq_list *p, *n; | 1772 | struct iucv_irq_list *p, *n; |
1774 | 1773 | ||
@@ -1878,14 +1877,25 @@ int iucv_path_table_empty(void) | |||
1878 | static int iucv_pm_freeze(struct device *dev) | 1877 | static int iucv_pm_freeze(struct device *dev) |
1879 | { | 1878 | { |
1880 | int cpu; | 1879 | int cpu; |
1880 | struct iucv_irq_list *p, *n; | ||
1881 | int rc = 0; | 1881 | int rc = 0; |
1882 | 1882 | ||
1883 | #ifdef CONFIG_PM_DEBUG | 1883 | #ifdef CONFIG_PM_DEBUG |
1884 | printk(KERN_WARNING "iucv_pm_freeze\n"); | 1884 | printk(KERN_WARNING "iucv_pm_freeze\n"); |
1885 | #endif | 1885 | #endif |
1886 | if (iucv_pm_state != IUCV_PM_FREEZING) { | ||
1887 | for_each_cpu_mask_nr(cpu, iucv_irq_cpumask) | ||
1888 | smp_call_function_single(cpu, iucv_block_cpu_almost, | ||
1889 | NULL, 1); | ||
1890 | cancel_work_sync(&iucv_work); | ||
1891 | list_for_each_entry_safe(p, n, &iucv_work_queue, list) { | ||
1892 | list_del_init(&p->list); | ||
1893 | iucv_sever_pathid(p->data.ippathid, | ||
1894 | iucv_error_no_listener); | ||
1895 | kfree(p); | ||
1896 | } | ||
1897 | } | ||
1886 | iucv_pm_state = IUCV_PM_FREEZING; | 1898 | iucv_pm_state = IUCV_PM_FREEZING; |
1887 | for_each_cpu_mask_nr(cpu, iucv_irq_cpumask) | ||
1888 | smp_call_function_single(cpu, iucv_block_cpu_almost, NULL, 1); | ||
1889 | if (dev->driver && dev->driver->pm && dev->driver->pm->freeze) | 1899 | if (dev->driver && dev->driver->pm && dev->driver->pm->freeze) |
1890 | rc = dev->driver->pm->freeze(dev); | 1900 | rc = dev->driver->pm->freeze(dev); |
1891 | if (iucv_path_table_empty()) | 1901 | if (iucv_path_table_empty()) |