9e69478cf554836a2f91e412feb1d8ded1bf4a67

Currently, in_interrupt() is used to determine task context. in_interrupt() would return 0 if the execution is in task context; a spin lock is obtained with bh disabled. Since the bh's are disabled, the preempt count/soft_irq disable count would increase. When we attempt to release the lock, the same in_interrupt() API would now return non-zero, failing to release the lock. The change uses appropriate preempt API to determine execution context. CRs-Fixed: 3509317 Change-Id: I43f981bf3a2d4c238cebc4b29fa8a9aa0a8e0df3 Signed-off-by: Soumen Ghosh <quic_soumeng@quicinc.com>
Beskrivning
No description provided
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%