All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [MIPS] DS1286: kill BKL
@ 2008-10-27 11:29 Dmitri Vorobiev
  2008-10-27 11:39 ` Ralf Baechle
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitri Vorobiev @ 2008-10-27 11:29 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: Dmitri Vorobiev

Using the Big Kernel Lock in the open() method of the DS1286
RTC driver is redundant, because the driver makes use of it's
own spinlock to guarantee serialized access. This patch kills
the redundant BKL calls.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
---
 drivers/char/ds1286.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/char/ds1286.c b/drivers/char/ds1286.c
index 0a826d7..3e4c801 100644
--- a/drivers/char/ds1286.c
+++ b/drivers/char/ds1286.c
@@ -253,7 +253,6 @@ static int ds1286_ioctl(struct inode *inode, struct file *file,
 
 static int ds1286_open(struct inode *inode, struct file *file)
 {
-	lock_kernel();
 	spin_lock_irq(&ds1286_lock);
 
 	if (ds1286_status & RTC_IS_OPEN)
@@ -262,12 +261,10 @@ static int ds1286_open(struct inode *inode, struct file *file)
 	ds1286_status |= RTC_IS_OPEN;
 
 	spin_unlock_irq(&ds1286_lock);
-	unlock_kernel();
 	return 0;
 
 out_busy:
 	spin_lock_irq(&ds1286_lock);
-	unlock_kernel();
 	return -EBUSY;
 }
 
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-10-29 21:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 11:29 [PATCH] [MIPS] DS1286: kill BKL Dmitri Vorobiev
2008-10-27 11:39 ` Ralf Baechle
2008-10-27 11:53   ` Dmitri Vorobiev
2008-10-27 13:19     ` [PATCH] CHAR: Delete old and now unused DS1286 driver Ralf Baechle
2008-10-29 21:02       ` Dmitri Vorobiev
2008-10-27 13:19     ` [PATCH] CHAR: Delete old and now unused M48T35 RTC driver for SGI IP27 Ralf Baechle
2008-10-29 21:02       ` Dmitri Vorobiev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.