From: Arjan van de Ven Date: Thu, 17 Jun 2010 10:02:06 +0000 (+0100) Subject: serial: replace open coded mutex with a real mutex in mrst_max3110.c X-Git-Tag: v2.6.36-rc1~294^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68c16b4117cc746a91897d629b61e5f2af18c225;p=pandora-kernel.git serial: replace open coded mutex with a real mutex in mrst_max3110.c The mrst_max3110.c driver uses an open coded, non atomic variable to create exclusion between two of its worker threads. More than that, while the main thread does a proper set-work-clear sequence, the other thread only does a test, with the result that no actual exclusion is happening. this patch replaces this open coded variable with a proper mutex in addition, the 'lock' spinlock is removed from the per adapter structure, the lock was only ever initialized but never used Signed-off-by: Arjan van de Ven Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed