summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2006-06-28 13:26:51 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-28 23:59:05 +0200
commiteffc8b704b48c3c727715abf49592a57547b6818 (patch)
tree7c375802aa0f36b5498ffa52f74d23c6422ad479
parent[PATCH] v9fs: fix fid check in v9fs_create (diff)
downloadlinux-effc8b704b48c3c727715abf49592a57547b6818.tar.xz
linux-effc8b704b48c3c727715abf49592a57547b6818.zip
[PATCH] stallion: fix recent SMP locking cleanup
Works better on SMP if... Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/char/stallion.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c
index bf361a5ba70d..00b4a2187164 100644
--- a/drivers/char/stallion.c
+++ b/drivers/char/stallion.c
@@ -3029,6 +3029,9 @@ static int __init stl_init(void)
int i;
printk(KERN_INFO "%s: version %s\n", stl_drvtitle, stl_drvversion);
+ spin_lock_init(&stallion_lock);
+ spin_lock_init(&brd_lock);
+
stl_initbrds();
stl_serial = alloc_tty_driver(STL_MAXBRDS * STL_MAXPORTS);