Skip to content

Commit

Permalink
[PATCH] stallion: fix recent SMP locking cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jun 28, 2006
1 parent 9d7fa40 commit effc8b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/char/stallion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit effc8b7

Please sign in to comment.