mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 02:28:54 +00:00
48ac5143a2
Linux DDE used to implement Linux spin locks based on 'dde_kit_lock'. This works fine if a spin lock is initialized only once and used infinitely. But if spin locks are initialized on-the-fly at a high rate, each initialization causes the allocation of a new 'dde_kit_lock'. Because in contrast to normal locks, spinlocks cannot be explicitly destroyed, the spin-lock emulating locks are never freed. To solve the leakage of locks, there seems to be no other way than to support the semantics as expected by the Linux drivers. Hence, this patch introduces a DDE Kit API for spin locks. |
||
---|---|---|
.. | ||
mk |