aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/ctcm_main.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/s390/net/ctcm_main.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/s390/net/ctcm_main.c')
-rw-r--r--drivers/s390/net/ctcm_main.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c
index 2c7d2d9be4d0..426787efc492 100644
--- a/drivers/s390/net/ctcm_main.c
+++ b/drivers/s390/net/ctcm_main.c
@@ -24,6 +24,7 @@
24#define KMSG_COMPONENT "ctcm" 24#define KMSG_COMPONENT "ctcm"
25#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt 25#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
26 26
27#include <linux/kernel_stat.h>
27#include <linux/module.h> 28#include <linux/module.h>
28#include <linux/init.h> 29#include <linux/init.h>
29#include <linux/kernel.h> 30#include <linux/kernel.h>
@@ -671,7 +672,6 @@ static int ctcmpc_transmit_skb(struct channel *ch, struct sk_buff *skb)
671 int ccw_idx; 672 int ccw_idx;
672 unsigned long hi; 673 unsigned long hi;
673 unsigned long saveflags = 0; /* avoids compiler warning */ 674 unsigned long saveflags = 0; /* avoids compiler warning */
674 __u16 block_len;
675 675
676 CTCM_PR_DEBUG("Enter %s: %s, cp=%i ch=0x%p id=%s state=%s\n", 676 CTCM_PR_DEBUG("Enter %s: %s, cp=%i ch=0x%p id=%s state=%s\n",
677 __func__, dev->name, smp_processor_id(), ch, 677 __func__, dev->name, smp_processor_id(), ch,
@@ -718,7 +718,6 @@ static int ctcmpc_transmit_skb(struct channel *ch, struct sk_buff *skb)
718 */ 718 */
719 atomic_inc(&skb->users); 719 atomic_inc(&skb->users);
720 720
721 block_len = skb->len + TH_HEADER_LENGTH + PDU_HEADER_LENGTH;
722 /* 721 /*
723 * IDAL support in CTCM is broken, so we have to 722 * IDAL support in CTCM is broken, so we have to
724 * care about skb's above 2G ourselves. 723 * care about skb's above 2G ourselves.
@@ -1204,6 +1203,7 @@ static void ctcm_irq_handler(struct ccw_device *cdev,
1204 int cstat; 1203 int cstat;
1205 int dstat; 1204 int dstat;
1206 1205
1206 kstat_cpu(smp_processor_id()).irqs[IOINT_CTC]++;
1207 CTCM_DBF_TEXT_(TRACE, CTC_DBF_DEBUG, 1207 CTCM_DBF_TEXT_(TRACE, CTC_DBF_DEBUG,
1208 "Enter %s(%s)", CTCM_FUNTAIL, dev_name(&cdev->dev)); 1208 "Enter %s(%s)", CTCM_FUNTAIL, dev_name(&cdev->dev));
1209 1209
@@ -1762,16 +1762,20 @@ static struct ccw_device_id ctcm_ids[] = {
1762MODULE_DEVICE_TABLE(ccw, ctcm_ids); 1762MODULE_DEVICE_TABLE(ccw, ctcm_ids);
1763 1763
1764static struct ccw_driver ctcm_ccw_driver = { 1764static struct ccw_driver ctcm_ccw_driver = {
1765 .owner = THIS_MODULE, 1765 .driver = {
1766 .name = "ctcm", 1766 .owner = THIS_MODULE,
1767 .name = "ctcm",
1768 },
1767 .ids = ctcm_ids, 1769 .ids = ctcm_ids,
1768 .probe = ccwgroup_probe_ccwdev, 1770 .probe = ccwgroup_probe_ccwdev,
1769 .remove = ccwgroup_remove_ccwdev, 1771 .remove = ccwgroup_remove_ccwdev,
1770}; 1772};
1771 1773
1772static struct ccwgroup_driver ctcm_group_driver = { 1774static struct ccwgroup_driver ctcm_group_driver = {
1773 .owner = THIS_MODULE, 1775 .driver = {
1774 .name = CTC_DRIVER_NAME, 1776 .owner = THIS_MODULE,
1777 .name = CTC_DRIVER_NAME,
1778 },
1775 .max_slaves = 2, 1779 .max_slaves = 2,
1776 .driver_id = 0xC3E3C3D4, /* CTCM */ 1780 .driver_id = 0xC3E3C3D4, /* CTCM */
1777 .probe = ctcm_probe_device, 1781 .probe = ctcm_probe_device,