Skip to content
Commit 262e85b1 authored by Satyajit Desai's avatar Satyajit Desai
Browse files

coresight: stm: Remove spin lock usage for channel allocation



Current usage of spinlock in channel allocation might result in
live lock issue. In order to avoid this we move to a per cpu
channel allocation scheme. We rely on preemption being disabled
when we allocate channel to avoid any conflict. If we end up
handling an interrupt which logs when preemption is disabled it
is still gauranteed to not interfere with the current logging
as the channel id will be freed up before resuming.

Change-Id: I91d7fcb4ed9202328e62d5459283927e238f9f66
Signed-off-by: default avatarSatyajit Desai <sadesai@codeaurora.org>
parent 5915565f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment