[PATCH 2/2] spi: bcm2835: Allow platform to set realtime priority
Mark Brown
broonie at kernel.org
Thu Mar 23 09:02:01 PDT 2017
On Thu, Mar 23, 2017 at 03:28:16PM +0100, Lukas Wunner wrote:
> I'm still wondering though: If the master thread is supposed to be
> run at a realtime priority *always*, 100%, all the time, what is the
> best way to achieve this? Setting it with chrt from an initscript
> seems clumsy to me. It's racy as the spi driver module needs to be
> loaded, whenever the driver module is removed and re-inserted, the
> priority needs to be updated again, there's always the difficulty of
> uniquely identifying the right thread, and so on. Setting this from
> the device tree is much more elegant so I intend to keep the commits
> at least on our own branch.
What would be great would be if the priority were communicated from the
device driver using the controller (which might in turn want to get it
from their users) rather than hard coding something into the middle of
the implementation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20170323/3e314997/attachment.sig>
More information about the linux-rpi-kernel
mailing list