Peter Zijlstra 48380368de Change DEFINE_SEMAPHORE() to take a number argument
Fundamentally semaphores are a counted primitive, but
DEFINE_SEMAPHORE() does not expose this and explicitly creates a
binary semaphore.

Change DEFINE_SEMAPHORE() to take a number argument and use that in the
few places that open-coded it using __SEMAPHORE_INITIALIZER().

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
[mcgrof: add some tribal knowledge about why some folks prefer
 binary sempahores over mutexes]
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-04-18 11:15:24 -07:00
..
2023-02-22 13:41:41 -08:00
2022-12-14 08:58:51 -08:00
2022-08-04 19:47:37 -07:00
2022-05-23 23:24:10 -04:00
2023-02-22 13:41:41 -08:00
2023-03-03 14:41:50 -08:00
2023-03-03 14:41:50 -08:00
2023-02-22 13:41:41 -08:00
2022-02-22 21:11:02 -05:00
2023-01-13 21:34:08 -05:00
2023-03-03 14:41:50 -08:00
2022-06-27 22:56:21 -04:00
2022-01-25 00:09:41 -05:00
2022-02-22 21:11:02 -05:00
2023-02-22 13:41:41 -08:00
2023-02-24 12:58:55 -08:00
2023-02-22 13:41:41 -08:00
2022-05-08 14:28:18 -04:00
2023-03-03 14:41:50 -08:00
2021-12-22 23:41:13 -05:00
2023-01-13 21:34:09 -05:00
2022-10-07 12:33:18 -07:00
2023-02-21 16:59:23 -08:00