Skip to content

Commit

Permalink
MIPS: Lemote 2F: Move printks out of port_access_lock.
Browse files Browse the repository at this point in the history
No point in protecting them and printks are sloow.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Feb 27, 2010
1 parent 7fe2d9c commit 3b43947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/loongson/lemote-2f/ec_kb3310b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 3b43947

Please sign in to comment.