[PATCH 1/3] spi: added spi_resource management
broonie at kernel.org
Wed Dec 2 04:29:53 PST 2015
On Wed, Dec 02, 2015 at 08:30:51AM +0100, Martin Sperl wrote:
> > This has exactly one (tiny) user. Why is it a separate function?
> Readability, mimicking devres code and the option of adding
> object caching/reuse here later...
This is *not* helping readability.
> There is a much higher likelihood that spi_resources will be
> allocated and then freed several times per second, so this
> can save cpu cycles and avoid locks...
In what way does splitting this over two functions helping improve
performance? If there were multiple users or something perhaps but
there don't appear to be.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 473 bytes
Desc: not available
More information about the linux-rpi-kernel