linux/arch/mips/cavium-octeon
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
..
crypto crypto: mips/sha - remove duplicate hash init function 2021-12-31 18:10:54 +11:00
executive MIPS: OCTEON: warn only once if deprecated link status is being used 2022-12-09 23:37:46 +01:00
cpu.c MIPS: Add missing include files 2017-03-08 10:38:06 +01:00
csrc-octeon.c MIPS: OCTEON: csrc-octeon: include linux/sched/clock.h 2018-11-21 15:36:42 -08:00
dma-octeon.c swiotlb: make the swiotlb_init interface more useful 2022-04-18 07:21:11 +02:00
flash_setup.c mips: clean up kernel-doc in cavium-octeon/*.c 2021-07-28 11:22:21 +02:00
Kconfig MIPS: Introduce CAVIUM_RESERVE32 Kconfig option 2022-07-30 10:59:02 +02:00
Makefile MIPS: OCTEON: Platform support for OCTEON III USB controller 2017-02-14 08:52:46 +00:00
oct_ilm.c mips: cavium: convert to DEFINE_SHOW_ATTRIBUTE 2022-09-19 16:39:47 +02:00
octeon_boot.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
octeon-irq.c MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() 2022-09-07 15:08:04 +02:00
octeon-memcpy.S MIPS: octeon: Fix missed PTR->PTR_WD conversion 2022-02-01 08:35:12 +01:00
octeon-platform.c mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start 2022-07-05 11:16:03 +02:00
octeon-usb.c MIPS: OCTEON: octeon-usb: Consolidate error messages 2023-01-27 17:09:15 +01:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
setup.c Change DEFINE_SEMAPHORE() to take a number argument 2023-04-18 11:15:24 -07:00
smp.c mips: clean up kernel-doc in cavium-octeon/*.c 2021-07-28 11:22:21 +02:00