[PATCH RFC 1/3] PM / Domains: Allocate memory outside domain locks
khilman at kernel.org
Wed Jun 10 10:33:37 PDT 2015
Lina Iyer <lina.iyer at linaro.org> writes:
> In order for domains to be powered on/off in irq locked context, the
> domain locks could either be a spinlock or a mutex, depending on the
I'd drop that sentence.
> In preparation for atomic support, allocate domain data outside
In preparation for supporting IRQ-safe domainss, ...
> the domain locks, so the allocation calls dont have to be context
OK, but *why* don't these allocations need to be protected by the
locks. Presumably they were put inside the locks for a reason, so you
should make the case for why the lock protection isn't needed.
More information about the linux-arm-kernel