MIPS: Lemote 2F: Move printks out of port_access_lock.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 27 Feb 2010 11:53:41 +0000 (12:53 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 27 Feb 2010 11:53:41 +0000 (12:53 +0100)
No point in protecting them and printks are sloow.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/loongson/lemote-2f/ec_kb3310b.c

index 4d84111a2cd442b091dda8f6c6f7ae7d11556770..64057244eec549b732fdc4e550e2388cf54c013a 100644 (file)
@@ -75,6 +75,8 @@ int ec_query_seq(unsigned char cmd)
                udelay(EC_REG_DELAY);
        }
 
+       spin_unlock_irqrestore(&port_access_lock, flags);
+
        if (timeout <= 0) {
                printk(KERN_ERR "%s: deadable error : timeout...\n", __func__);
                ret = -EINVAL;
@@ -83,8 +85,6 @@ int ec_query_seq(unsigned char cmd)
                           "(%x/%d)ec issued command %d status : 0x%x\n",
                           timeout, EC_CMD_TIMEOUT - timeout, cmd, status);
 
-       spin_unlock_irqrestore(&port_access_lock, flags);
-
        return ret;
 }
 EXPORT_SYMBOL_GPL(ec_query_seq);