diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 12:53:41 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 12:53:41 +0100 |
commit | 3b439470e360931ad65234f94aa92cd7362f635a (patch) | |
tree | ac185177dbf824e44a13ca7a22bb7449c762834c /arch/mips/loongson | |
parent | MIPS: PNX833x: Convert IRQ controller locks to raw spinlocks. (diff) | |
download | linux-3b439470e360931ad65234f94aa92cd7362f635a.tar.xz linux-3b439470e360931ad65234f94aa92cd7362f635a.zip |
MIPS: Lemote 2F: Move printks out of port_access_lock.
No point in protecting them and printks are sloow.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/loongson')
-rw-r--r-- | arch/mips/loongson/lemote-2f/ec_kb3310b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/loongson/lemote-2f/ec_kb3310b.c b/arch/mips/loongson/lemote-2f/ec_kb3310b.c index 4d84111a2cd4..64057244eec5 100644 --- a/arch/mips/loongson/lemote-2f/ec_kb3310b.c +++ b/arch/mips/loongson/lemote-2f/ec_kb3310b.c @@ -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); |