PM / Domains: Allocate memory outside domain locks
authorLina Iyer <lina.iyer@linaro.org>
Wed, 28 Oct 2015 21:19:50 +0000 (15:19 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Nov 2015 01:26:17 +0000 (02:26 +0100)
commit2547923d1cc38b4b55c538e450411586acc39ac6
tree237a3455cf5bd251b0d5c9ea8ecddc93a7edecab
parent298cd0f0880188422a518e9d780bd49d66ea7ad5
PM / Domains: Allocate memory outside domain locks

In preparation for supporting IRQ-safe domains, allocate domain data
outside the domain locks. These functions are not called in an atomic
context, so we can always allocate memory using GFP_KERNEL. By
allocating memory before the locks, we can safely lock the domain using
spinlocks instead of mutexes.

Reviewed-by: Kevin Hilman <khilman@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Lina Iyer <lina.iyer@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
This page took 0.02756 seconds and 5 git commands to generate.