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-08 18:49:48 -05:00
2022-09-15 22:01:24 -04:00
2023-02-08 19:12:25 -05:00
2021-10-16 21:45:54 -04:00
2022-02-22 21:11:03 -05:00
2022-06-21 21:19:23 -04:00
2022-11-17 18:15:45 +00:00
2022-05-16 21:26:50 -04:00
2022-06-21 21:14:54 -04:00
2022-11-08 03:40:54 +00:00
2023-02-21 22:00:51 -05:00
2023-02-23 17:09:35 -08:00
2023-02-22 13:41:41 -08:00
2023-01-23 20:53:43 -05:00
2023-04-18 11:15:24 -07:00
2022-12-14 08:58:51 -08:00
2022-08-04 19:47:37 -07:00
2023-01-12 00:08:03 -05:00
2022-11-07 18:57:39 +00:00
2022-09-15 22:30:26 -04:00
2022-05-23 23:24:10 -04:00
2022-12-01 03:03:36 +00:00
2023-02-22 13:41:41 -08:00
2023-03-03 14:41:50 -08:00
2023-01-18 18:22:22 -05:00
2023-03-03 14:41:50 -08:00
2023-02-22 13:41:41 -08:00
2022-10-22 03:02:52 +00:00
2022-10-27 02:15:46 +00:00
2023-01-11 21:53:34 -05:00
2022-10-22 03:09:45 +00:00
2023-02-21 22:00:51 -05:00
2023-02-21 18:03:29 -05:00
2022-10-22 03:25:59 +00:00
2023-02-08 19:03:43 -05:00
2023-02-08 18:49:59 -05:00
2022-06-21 21:41:19 -04:00
2022-09-06 22:22:24 -04:00
2023-01-12 00:09:52 -05:00
2023-01-12 00:09:52 -05:00
2022-09-25 13:06:00 -04:00
2022-09-25 13:06:00 -04:00
2022-02-22 21:11:03 -05:00
2021-11-29 23:02:13 -05:00
2022-07-07 17:01:22 -04:00
2022-07-07 17:01:22 -04:00
2022-02-22 21:11:03 -05:00
2022-03-29 23:42:18 -04:00
2022-04-25 23:25:11 -04:00
2022-02-22 21:11:02 -05:00
2022-02-22 21:11:03 -05:00
2021-11-29 23:02:13 -05:00
2022-11-08 03:01:12 +00:00
2023-01-13 21:34:08 -05:00
2022-04-26 08:51:56 -04:00
2022-02-22 21:11:03 -05:00
2022-02-22 21:11:04 -05:00
2022-02-22 21:11:04 -05:00
2022-02-22 21:11:04 -05:00
2022-08-01 19:52:03 -04:00
2022-02-22 21:11:03 -05:00
2022-07-13 23:18:26 -04:00
2023-02-21 22:00:51 -05:00
2023-01-18 18:59:46 -05:00
2022-09-25 13:02:23 -04:00
2022-09-25 13:04:17 -04:00
2022-02-22 21:11:04 -05:00
2022-02-22 21:11:04 -05:00
2022-08-31 23:39:57 -04:00
2022-02-22 21:11:05 -05:00
2023-03-03 14:41:50 -08:00
2023-01-18 18:41:12 -05:00
2023-01-27 22:56:18 -08:00
2022-09-25 14:27:47 -04:00
2022-09-25 12:46:59 -04:00
2021-08-30 10:18:25 +02:00
2022-06-21 21:19:23 -04:00
2023-01-18 19:14:56 -05:00
2022-04-25 23:23:05 -04:00
2022-02-27 21:35:30 -05:00
2022-02-22 21:11:03 -05:00
2022-06-27 22:56:21 -04:00
2022-04-26 09:02:44 -04:00
2022-02-22 21:11:05 -05:00
2022-06-26 10:29:44 +10:00
2022-02-27 21:34:02 -05:00
2022-02-22 21:11:07 -05:00
2023-01-12 00:11:11 -05:00
2023-01-12 00:11:11 -05:00
2022-05-23 23:24:10 -04:00
2022-01-25 00:09:41 -05:00
2022-02-22 21:11:07 -05:00
2022-02-22 21:11:07 -05:00
2022-11-08 02:57:01 +00:00
2022-02-22 21:11:03 -05:00
2022-02-22 21:11:06 -05:00
2022-02-22 21:11:06 -05:00
2022-06-07 22:05:14 -04:00
2022-03-29 23:32:26 -04:00
2022-02-22 21:11:06 -05:00
2021-10-16 21:32:16 -04:00
2022-05-19 20:26:21 -04:00
2022-02-22 21:11:06 -05:00
2022-02-22 21:11:02 -05:00
2022-02-22 21:11:02 -05:00
2022-09-06 22:14:14 -04:00
2022-03-15 14:05:02 -04:00
2022-12-30 16:29:34 +00:00
2022-03-01 22:21:50 -05:00
2022-12-30 16:29:34 +00:00
2023-01-13 21:34:09 -05:00
2023-02-21 22:00:51 -05:00
2022-03-29 23:29:19 -04:00
2021-12-22 23:38:29 -05:00
2022-10-18 03:17:09 +00:00
2022-10-18 03:17:09 +00:00
2023-02-22 13:41:41 -08:00
2023-02-24 12:58:55 -08:00
2023-02-21 18:03:29 -05:00
2022-12-30 16:29:34 +00:00
2022-11-08 01:52:52 +00:00
2023-01-13 21:34:09 -05:00
2022-10-22 03:25:59 +00:00
2023-02-22 13:41:41 -08:00
2022-05-08 14:28:18 -04:00
2023-02-21 22:00:32 -05:00
2022-12-01 03:13:55 +00:00
2023-01-13 21:34:09 -05:00
2023-03-03 14:41:50 -08:00
2022-08-22 22:45:25 -04:00
2023-02-21 17:44:06 -05:00
2023-02-09 16:51:39 -08:00
2022-02-22 21:11:07 -05:00
2023-01-13 21:34:09 -05:00
2021-12-22 23:41:13 -05:00
2023-01-13 21:34:09 -05:00
2022-03-08 19:40:01 -07:00
2022-10-07 12:33:18 -07:00
2022-03-08 19:40:00 -07:00
2022-09-25 14:15:03 -04:00
2023-02-21 16:59:23 -08:00
2022-02-22 21:11:03 -05:00
2023-02-25 11:48:02 -08:00
2022-04-06 23:01:54 -04:00
2022-06-07 21:30:56 -04:00
2022-09-25 13:29:53 -04:00
2022-09-25 13:29:53 -04:00
2022-03-01 23:56:28 -05:00
2022-02-22 21:11:07 -05:00
2022-12-15 16:06:10 +01:00
2022-02-22 21:11:07 -05:00
2022-03-30 00:05:42 -04:00