]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/s390/cio/cio.c
[PATCH] improve idle cputime accounting
[karo-tx-linux.git] / drivers / s390 / cio / cio.c
index 8f1cec49953232d4a9ae222ec394ec8d197b16d5..06b71823f3991b7e23d6810d13be0f6c0f5cee20 100644 (file)
@@ -9,6 +9,9 @@
  *              Martin Schwidefsky (schwidefsky@de.ibm.com)
  */
 
+#define KMSG_COMPONENT "cio"
+#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/slab.h>
@@ -629,8 +632,8 @@ do_IRQ (struct pt_regs *regs)
        struct pt_regs *old_regs;
 
        old_regs = set_irq_regs(regs);
-       irq_enter();
        s390_idle_check();
+       irq_enter();
        if (S390_lowcore.int_clock >= S390_lowcore.clock_comparator)
                /* Serve timer interrupts first. */
                clock_comparator_work();
@@ -814,7 +817,7 @@ cio_probe_console(void)
        sch_no = cio_get_console_sch_no();
        if (sch_no == -1) {
                console_subchannel_in_use = 0;
-               printk(KERN_WARNING "cio: No ccw console found!\n");
+               pr_warning("No CCW console was found\n");
                return ERR_PTR(-ENODEV);
        }
        memset(&console_subchannel, 0, sizeof(struct subchannel));