[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0702011617010.13648@jikos.suse.cz>
Date: Thu, 1 Feb 2007 16:36:32 +0100 (CET)
From: Jiri Kosina <jkosina@...e.cz>
To: Andrew Morton <akpm@...l.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 7/10] CHAR-Amiserial: turn local_save_flags() + local_irq_disable()
into local_irq_save()
From: Jiri Kosina <jkosina@...e.cz>
CHAR-Amiserial: turn local_save_flags() + local_irq_disable() into local_irq_save()
drivers/char/amiserial.c::rs_write() contains local_irq_disable()
after local_save_flags(). Turn it into local_irq_save().
Signed-off-by: Jiri Kosina <jkosina@...e.cz>
---
drivers/char/amiserial.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c
index feb4ac8..61f646b 100644
--- a/drivers/char/amiserial.c
+++ b/drivers/char/amiserial.c
@@ -904,8 +904,7 @@ static int rs_write(struct tty_struct * tty, const unsigned char *buf, int count
if (!info->xmit.buf)
return 0;
- local_save_flags(flags);
- local_irq_disable();
+ local_irq_save(flags);
while (1) {
c = CIRC_SPACE_TO_END(info->xmit.head,
info->xmit.tail,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists