From: Larry Finger Date: Thu, 9 Feb 2012 01:42:03 +0000 (-0600) Subject: staging: r8712u: Simplify semaphores X-Git-Tag: v3.4-rc1~186^2~176^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86587b671bf87ed81d2d89cd1199af912402a05f;p=pandora-kernel.git staging: r8712u: Simplify semaphores I am preparing to convert this driver from semaphore to mutex locking, The first step has been to eliminate a number of semaphores that were initialized but never used, and one whose only use was a single "up" after initialization. A total of 9 semaphores were removed in this process. One other change was to remove some inline semaphore routines that were unused. In addition, several cases had the following structure: down() if () { ... } up() The locking overhead was reduced by moving the up/down inside the if block. Signed-off-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed